diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2019-05-14 19:31:20 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2019-05-14 19:39:06 +0300 |
commit | be567cb5dd629e9aa22d81b29d4326e5aa97efa7 (patch) | |
tree | 275c51c859d5ad94e58d471d179b274200548191 /tests/keygen.c | |
parent | 34e9306a66b47785ddbab6594ae4c23581d35b5a (diff) | |
download | libgcrypt-be567cb5dd629e9aa22d81b29d4326e5aa97efa7.tar.gz |
tests: do not use GCC variadic macro extension for xgcry_control
* tests/t-common.h (xgcry_control): Use doubly nested parenthesis for
passing arguments for gcry_control instead of GCC specific variadic
macro extension.
* tests/aeswrap.c: Change xgcry_control to use doubly nested
parenthesis.
* tests/basic.c: Ditto.
* tests/bench-slope.c: Ditto.
* tests/benchmark.c: Ditto.
* tests/curves.c: Ditto.
* tests/dsa-rfc6979.c: Ditto.
* tests/fips186-dsa: Ditto.
* tests/fipsdrv.c: Ditto.
* tests/fipsrngdrv.c: Ditto.
* tests/gchash.c: Ditto.
* tests/hashtest.c: Ditto.
* tests/hmac.c: Ditto.
* tests/keygen.c: Ditto.
* tests/keygrip.c: Ditto.
* tests/mpitests.c: Ditto.
* tests/pkbench.c: Ditto.
* tests/pkcs1v2.c: Ditto.
* tests/prime.c: Ditto.
* tests/pubkey.c: Ditto.
* tests/random.c: Ditto.
* tests/rsacvt.c: Ditto.
* tests/t-convert.c: Ditto.
* tests/t-cv25519.c: Ditto.
* tests/t-ed25519.c: Ditto.
* tests/t-kdf.c: Ditto.
* tests/t-lock.c: Ditto.
* tests/t-mpi-bit.c: Ditto.
* tests/t-mpi-point.c: Ditto.
* tests/t-secmem.c: Ditto.
* tests/t-sexp.c: Ditto.
* tests/version.c: Ditto.
--
GnuPG-bug-id: 4499
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'tests/keygen.c')
-rw-r--r-- | tests/keygen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/keygen.c b/tests/keygen.c index 6b6a60a4..4e7dfd35 100644 --- a/tests/keygen.c +++ b/tests/keygen.c @@ -733,22 +733,22 @@ main (int argc, char **argv) break; } - xgcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose); + xgcry_control ((GCRYCTL_SET_VERBOSITY, (int)verbose)); if (opt_fips) - xgcry_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) - xgcry_control (GCRYCTL_DISABLE_SECMEM, 0); + xgcry_control ((GCRYCTL_DISABLE_SECMEM, 0)); - xgcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); + xgcry_control ((GCRYCTL_INITIALIZATION_FINISHED, 0)); if (debug) - xgcry_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. */ if (!no_quick) - xgcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); + xgcry_control ((GCRYCTL_ENABLE_QUICK_RANDOM, 0)); if (with_progress) gcry_set_progress_handler (progress_cb, NULL); |