summaryrefslogtreecommitdiff
path: root/tests/hmac.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2019-05-14 19:31:20 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2019-05-14 19:39:06 +0300
commitbe567cb5dd629e9aa22d81b29d4326e5aa97efa7 (patch)
tree275c51c859d5ad94e58d471d179b274200548191 /tests/hmac.c
parent34e9306a66b47785ddbab6594ae4c23581d35b5a (diff)
downloadlibgcrypt-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/hmac.c')
-rw-r--r--tests/hmac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hmac.c b/tests/hmac.c
index 5852ee4a..2b4c0f9f 100644
--- a/tests/hmac.c
+++ b/tests/hmac.c
@@ -192,10 +192,10 @@ main (int argc, char **argv)
if (!gcry_check_version (GCRYPT_VERSION))
die ("version mismatch\n");
- xgcry_control (GCRYCTL_DISABLE_SECMEM, 0);
- xgcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
+ xgcry_control ((GCRYCTL_DISABLE_SECMEM, 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));
check_hmac ();
check_hmac_multi ();