summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-20 19:26:48 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-20 19:28:33 +0100
commit60cbde88d2e0e67646de751d36b59da06e533aff (patch)
tree882f0d671475dd6e7bb96de739dc905cc3c3b522
parent93a159f00e030d995bedfc684fe5db67a9305779 (diff)
downloadgnutls-60cbde88d2e0e67646de751d36b59da06e533aff.tar.gz
benchmark-ciphers re-enabled
-rw-r--r--src/cli.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index e673aad8d2..ccd59d0786 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -52,6 +52,7 @@
#include <minmax.h>
#include "sockets.h"
+#include "benchmark.h"
#include <common.h>
#include <socket.h>
@@ -1114,6 +1115,24 @@ const char* rest = NULL;
if (rest == NULL && argc > 0)
rest = argv[0];
+
+ if (HAVE_OPT(BENCHMARK_CIPHERS))
+ {
+ benchmark_cipher(1, OPT_VALUE_DEBUG);
+ exit(0);
+ }
+
+ if (HAVE_OPT(BENCHMARK_SOFT_CIPHERS))
+ {
+ benchmark_cipher(0, OPT_VALUE_DEBUG);
+ exit(0);
+ }
+
+ if (HAVE_OPT(BENCHMARK_TLS))
+ {
+ benchmark_tls(OPT_VALUE_DEBUG);
+ exit(0);
+ }
if (HAVE_OPT(PRIORITY))
{