summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-06-29 08:40:57 (GMT)
committerWerner Koch <wk@gnupg.org>2011-06-29 08:40:57 (GMT)
commiteb97544d99de6ab377ecbb9bbb6427f1e7c35c35 (patch)
treea79f3b1b7920f1ef3df265279cba60a2782f34c1
parentb90be2836e1806f2441c97f70952ca042a67f520 (diff)
downloadlibgcrypt-eb97544d99de6ab377ecbb9bbb6427f1e7c35c35.tar.gz
libgcrypt-eb97544d99de6ab377ecbb9bbb6427f1e7c35c35.tar.xz
Implement the --debug option for the keygrip test.
-rw-r--r--tests/keygrip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/keygrip.c b/tests/keygrip.c
index adc72e7..a496ca2 100644
--- a/tests/keygrip.c
+++ b/tests/keygrip.c
@@ -239,6 +239,9 @@ main (int argc, char **argv)
gcry_set_progress_handler (progress_handler, NULL);
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
+ gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
+ if (debug)
+ gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1u, 0);
check ();