summaryrefslogtreecommitdiff
path: root/tests/keygen.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-12-13 13:33:45 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 13:52:19 +0100
commit92abfca650397e1f5dfa3a5c7752eb380cc94d0e (patch)
tree5cd2111a09ee3efc41c61f10c8423d99825a8c40 /tests/keygen.c
parent4fae5c0b62f5a507a74db654c50ad1c8b182c6d5 (diff)
downloadlibgcrypt-92abfca650397e1f5dfa3a5c7752eb380cc94d0e.tar.gz
tests: Check the result of all gcry_control operations.
-- Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/keygen.c')
-rw-r--r--tests/keygen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/keygen.c b/tests/keygen.c
index 2d3177fb..7cf48b6a 100644
--- a/tests/keygen.c
+++ b/tests/keygen.c
@@ -726,21 +726,21 @@ main (int argc, char **argv)
break;
}
- gcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose);
+ xgcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose);
if (opt_fips)
- gcry_control (GCRYCTL_FORCE_FIPS_MODE, 0);
+ xgcry_control (GCRYCTL_FORCE_FIPS_MODE, 0);
if (!gcry_check_version (GCRYPT_VERSION))
die ("version mismatch\n");
if (!opt_fips)
- gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
+ xgcry_control (GCRYCTL_DISABLE_SECMEM, 0);
- gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
+ xgcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
if (debug)
- gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1u , 0);
+ xgcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1u , 0);
/* No valuable keys are create, so we can speed up our RNG. */
- gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
+ xgcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
if (with_progress)
gcry_set_progress_handler (progress_cb, NULL);