summaryrefslogtreecommitdiff
path: root/tests/x509self.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/x509self.c
parent71af07d3dd6315cb3748e741a82ebfd764f284e7 (diff)
downloadgnutls-f1cccbd6f79f903b2b0740ca35343ea1a74bb66d.tar.gz
tests/: Reduce amount of debugging output.
Diffstat (limited to 'tests/x509self.c')
-rw-r--r--tests/x509self.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/x509self.c b/tests/x509self.c
index 87938f890f..a29809b9b7 100644
--- a/tests/x509self.c
+++ b/tests/x509self.c
@@ -157,7 +157,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);
@@ -386,7 +387,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);