summaryrefslogtreecommitdiff
path: root/tests/crq_key_id.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-02-22 22:12:51 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-02-22 22:12:51 +0200
commit1717d6a7e3d9f07f1dd9e7b563eccb218a38651e (patch)
treecece44434988def0abaea2b55bdf0a60a4adda7c /tests/crq_key_id.c
parentc8b1320fed7f1c1a7702cb3ba55367929c8164e3 (diff)
downloadgnutls-1717d6a7e3d9f07f1dd9e7b563eccb218a38651e.tar.gz
Added more verbose information.
Diffstat (limited to 'tests/crq_key_id.c')
-rw-r--r--tests/crq_key_id.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/crq_key_id.c b/tests/crq_key_id.c
index c363d40226..e3f0978b09 100644
--- a/tests/crq_key_id.c
+++ b/tests/crq_key_id.c
@@ -25,6 +25,7 @@
#endif
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <gcrypt.h>
#include <gnutls/gnutls.h>
@@ -32,6 +33,12 @@
#include "utils.h"
+static void
+tls_log_func (int level, const char *str)
+{
+ fprintf (stderr, "%s |<%d>| %s", "crq_key_id", level, str);
+}
+
void
doit (void)
{
@@ -54,6 +61,9 @@ doit (void)
if (ret < 0)
fail ("gnutls_global_init: %d\n", ret);
+ gnutls_global_set_log_function (tls_log_func);
+ gnutls_global_set_log_level (4711);
+
for (algorithm = GNUTLS_PK_RSA; algorithm <= GNUTLS_PK_DSA; algorithm++)
{
ret = gnutls_x509_crq_init (&crq);