diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-28 00:26:46 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-28 00:27:10 +0200 |
commit | ee1a19267a3a3a7c42f9171e85d94f6ba48d125f (patch) | |
tree | a28fa0f6b3e03676b6b47ff674311703a5eec065 /src/benchmark-cipher.c | |
parent | 85a60552eaa46954502292d2d8012915c241e4c1 (diff) | |
download | gnutls-ee1a19267a3a3a7c42f9171e85d94f6ba48d125f.tar.gz |
Benchmark applications were incorporated to gnutls-cli
Diffstat (limited to 'src/benchmark-cipher.c')
-rw-r--r-- | src/benchmark-cipher.c | 10 |
1 files changed, 2 insertions, 8 deletions
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(); } |