summaryrefslogtreecommitdiff
path: root/tests/x509signself.c
diff options
context:
space:
mode:
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);