]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
benchmark-ciphers re-enabled
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 20 Feb 2012 18:26:48 +0000 (19:26 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 20 Feb 2012 18:28:33 +0000 (19:28 +0100)
src/cli.c

index e673aad8d283d21be3e22685eb4d8e15b6e0cfba..ccd59d0786927940564890d3b0b5f68145da81a3 100644 (file)
--- 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)) 
     {