summaryrefslogtreecommitdiff
path: root/tests/pkcs12_s2k.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-03-20 14:57:26 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-03-20 14:57:26 +0100
commit57d407aba226740d7e5f830155c260199461bb6d (patch)
tree0b3d4f5c1e52d98f13273c9a4d22d03a10e6c98c /tests/pkcs12_s2k.c
parent5bf4daf8d5ebc79058bdafe8167da04abc5c5582 (diff)
downloadgnutls-57d407aba226740d7e5f830155c260199461bb6d.tar.gz
Reduced several unneeded messages during the make check procedure.
Verbose messages can be obtained with --verbose.
Diffstat (limited to 'tests/pkcs12_s2k.c')
-rw-r--r--tests/pkcs12_s2k.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/pkcs12_s2k.c b/tests/pkcs12_s2k.c
index 747c4ea7b3..447d628359 100644
--- a/tests/pkcs12_s2k.c
+++ b/tests/pkcs12_s2k.c
@@ -117,7 +117,8 @@ doit (void)
gnutls_global_init ();
gnutls_global_set_log_function (tls_log_func);
- gnutls_global_set_log_level (99);
+ if (debug)
+ gnutls_global_set_log_level (99);
x = 0;
for (i = 1; i < 4; i++)
@@ -135,12 +136,13 @@ doit (void)
tmp, sizeof (tmp)), values[x]) != 0)
fail ("_gnutls_pkcs12_string_to_key failed[1]\n");
- printf ("ij: %d.%d: %s\n", i, j,
+ if (debug)
+ printf ("ij: %d.%d: %s\n", i, j,
_gnutls_bin2hex (key, sizeof (key), tmp, sizeof (tmp)));
x++;
}
}
- printf ("\n");
+ if (debug) printf ("\n");
for (i = 0; i < sizeof (tv) / sizeof (tv[0]); i++)
{
@@ -155,12 +157,13 @@ doit (void)
tv[i].key, tv[i].keylen) != 0)
fail ("_gnutls_pkcs12_string_to_key failed[3]\n");
- printf ("tv[%d]: %s\n", i,
+ if (debug)
+ printf ("tv[%d]: %s\n", i,
_gnutls_bin2hex (key, tv[i].keylen, tmp, sizeof (tmp)));
}
- printf ("\n");
+ if (debug) printf ("\n");
gnutls_global_deinit ();
- success ("_gnutls_pkcs12_string_to_key ok\n");
+ if (debug) success ("_gnutls_pkcs12_string_to_key ok\n");
}