summaryrefslogtreecommitdiff
path: root/tests/x509signself.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-06-07 16:33:40 +0200
committerSimon Josefsson <simon@josefsson.org>2008-06-07 16:33:40 +0200
commitf1cccbd6f79f903b2b0740ca35343ea1a74bb66d (patch)
treee2d287822a9e5f2e110f4ab67d1c872518a61ce4 /tests/x509signself.c
parent71af07d3dd6315cb3748e741a82ebfd764f284e7 (diff)
downloadgnutls-f1cccbd6f79f903b2b0740ca35343ea1a74bb66d.tar.gz
tests/: Reduce amount of debugging output.
Diffstat (limited to 'tests/x509signself.c')
-rw-r--r--tests/x509signself.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/x509signself.c b/tests/x509signself.c
index d6a86dd122..0d17ed1aea 100644
--- a/tests/x509signself.c
+++ b/tests/x509signself.c
@@ -188,7 +188,8 @@ client (void)
gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
- gnutls_global_set_log_level (4711);
+ if (debug)
+ gnutls_global_set_log_level (4711);
gnutls_certificate_allocate_credentials (&xcred);
@@ -419,7 +420,8 @@ server (void)
gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
- gnutls_global_set_log_level (4711);
+ if (debug)
+ gnutls_global_set_log_level (4711);
gnutls_certificate_allocate_credentials (&x509_cred);
gnutls_certificate_set_x509_trust_mem (x509_cred, &ca, GNUTLS_X509_FMT_PEM);