diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-20 19:26:48 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-20 19:28:33 +0100 |
commit | 60cbde88d2e0e67646de751d36b59da06e533aff (patch) | |
tree | 882f0d671475dd6e7bb96de739dc905cc3c3b522 | |
parent | 93a159f00e030d995bedfc684fe5db67a9305779 (diff) | |
download | gnutls-60cbde88d2e0e67646de751d36b59da06e533aff.tar.gz |
benchmark-ciphers re-enabled
-rw-r--r-- | src/cli.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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)) { |