summaryrefslogtreecommitdiff
path: root/tests/fipsdrv.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-08-29 16:09:39 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2017-08-29 16:09:39 +0900
commita848ef44470a524c05624afb54b92cf25595acd2 (patch)
tree1dbdce0a3c7b0623644eb015563d416a73a517d2 /tests/fipsdrv.c
parentdb3a8d6890fb4a6436e082b49378c0bd891563ca (diff)
downloadlibgcrypt-a848ef44470a524c05624afb54b92cf25595acd2.tar.gz
tests: Fix warnings on Windows.
* tests/fipsdrv.c (print_dsa_domain_parameters, print_ecdsa_dq): Fix. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests/fipsdrv.c')
-rw-r--r--tests/fipsdrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fipsdrv.c b/tests/fipsdrv.c
index f9d9c453..71554e23 100644
--- a/tests/fipsdrv.c
+++ b/tests/fipsdrv.c
@@ -1835,7 +1835,7 @@ print_dsa_domain_parameters (gcry_sexp_t key)
/* Extract the parameters from the S-expression and print them to stdout. */
for (idx=0; "pqg"[idx]; idx++)
{
- l2 = gcry_sexp_find_token (l1, "pqg"+idx, 1);
+ l2 = gcry_sexp_find_token (l1, &"pqg"[idx], 1);
if (!l2)
die ("no %c parameter in returned public key\n", "pqg"[idx]);
mpi = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_USG);
@@ -1923,7 +1923,7 @@ print_ecdsa_dq (gcry_sexp_t key)
/* Extract the parameters from the S-expression and print them to stdout. */
for (idx=0; "dq"[idx]; idx++)
{
- l2 = gcry_sexp_find_token (l1, "dq"+idx, 1);
+ l2 = gcry_sexp_find_token (l1, &"dq"[idx], 1);
if (!l2)
die ("no %c parameter in returned public key\n", "dq"[idx]);
mpi = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_USG);