From: Nikos Mavrogiannopoulos Date: Sun, 5 Jun 2011 02:38:34 +0000 (+0200) Subject: Added debugging ability to cipher-test. X-Git-Tag: gnutls_2_99_3~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14f34688075542d4a239ba5f57ae8fb4a2ebe3d8;p=thirdparty%2Fgnutls.git Added debugging ability to cipher-test. --- diff --git a/tests/cipher-test.c b/tests/cipher-test.c index 000cfdeb64..c14813f787 100644 --- a/tests/cipher-test.c +++ b/tests/cipher-test.c @@ -455,10 +455,20 @@ test_hash (void) } +static void +tls_log_func (int level, const char *str) +{ + fprintf (stderr, "<%d>| %s", level, str); +} + int main (int argc, char **argv) { + gnutls_global_set_log_function (tls_log_func); + if (argc > 1) + gnutls_global_set_log_level (4711); + gnutls_global_init (); if (test_aes ())