diff options
author | Justus Winter <justus@g10code.com> | 2016-12-13 13:33:45 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2016-12-13 13:52:19 +0100 |
commit | 92abfca650397e1f5dfa3a5c7752eb380cc94d0e (patch) | |
tree | 5cd2111a09ee3efc41c61f10c8423d99825a8c40 /tests/fipsdrv.c | |
parent | 4fae5c0b62f5a507a74db654c50ad1c8b182c6d5 (diff) | |
download | libgcrypt-92abfca650397e1f5dfa3a5c7752eb380cc94d0e.tar.gz |
tests: Check the result of all gcry_control operations.
--
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/fipsdrv.c')
-rw-r--r-- | tests/fipsdrv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/fipsdrv.c b/tests/fipsdrv.c index dd0fd3ae..f9d9c453 100644 --- a/tests/fipsdrv.c +++ b/tests/fipsdrv.c @@ -929,7 +929,7 @@ run_external_rng_test (void *context, void *buffer, size_t buflen) static void deinit_external_rng_test (void *context) { - gcry_control (PRIV_CTL_DEINIT_EXTRNG_TEST, context); + xgcry_control (PRIV_CTL_DEINIT_EXTRNG_TEST, context); } @@ -2476,16 +2476,16 @@ main (int argc, char **argv) if (verbose) fprintf (stderr, PGM ": started (mode=%s)\n", mode_string); - gcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose); + xgcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose); if (!no_fips) - gcry_control (GCRYCTL_FORCE_FIPS_MODE, 0); + xgcry_control (GCRYCTL_FORCE_FIPS_MODE, 0); if (!gcry_check_version ("1.4.3")) die ("Libgcrypt is not sufficient enough\n"); if (verbose) fprintf (stderr, PGM ": using Libgcrypt %s\n", gcry_check_version (NULL)); if (no_fips) - gcry_control (GCRYCTL_DISABLE_SECMEM, 0); - gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); + xgcry_control (GCRYCTL_DISABLE_SECMEM, 0); + xgcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); /* Most operations need some input data. */ if (!chunksize |