summaryrefslogtreecommitdiff
path: root/src/reclaim
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-07-23 13:55:18 +0200
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-07-23 13:55:18 +0200
commite3383d7cd239905487bfae46967256bb2a1a98ab (patch)
treea49fc14f307e574e77e14492e7f9d82286da44bc /src/reclaim
parent6c4bd20776ce2dd060beee9abd7baaf7d38c4988 (diff)
fix
Diffstat (limited to 'src/reclaim')
-rw-r--r--src/reclaim/oidc_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 5ad1ff0a0..f63e38e9a 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -226,7 +226,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
ticket,
sizeof (struct GNUNET_RECLAIM_Ticket));
if (NULL != nonce)
- memcpy (&purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
+ memcpy (((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
nonce,
strlen (nonce));
if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer,
@@ -365,7 +365,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
}
if (NULL != nonce_str)
memcpy (nonce_str,
- &purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
+ ((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
strlen (nonce_str));
if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
purpose,