From ee1a19267a3a3a7c42f9171e85d94f6ba48d125f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 28 Aug 2011 00:26:46 +0200 Subject: Benchmark applications were incorporated to gnutls-cli --- src/benchmark-cipher.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/benchmark-cipher.c') diff --git a/src/benchmark-cipher.c b/src/benchmark-cipher.c index f23c8990d8..d43bc0cd1f 100644 --- a/src/benchmark-cipher.c +++ b/src/benchmark-cipher.c @@ -202,14 +202,8 @@ mac_bench (int algo, int size) free (_key); } -int -main (int argc, char **argv) +void benchmark_cipher (int debug_level) { - int debug_level = 0; - - if (argc > 1) - debug_level = 2; - gnutls_global_set_log_function (tls_log_func); gnutls_global_set_log_level (debug_level); gnutls_global_init (); @@ -230,5 +224,5 @@ main (int argc, char **argv) cipher_bench (GNUTLS_CIPHER_ARCFOUR, 16, 0); - return 0; + gnutls_global_deinit(); } -- cgit v1.2.1