aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,
226 ticket, 226 ticket,
227 sizeof (struct GNUNET_RECLAIM_Ticket)); 227 sizeof (struct GNUNET_RECLAIM_Ticket));
228 if (NULL != nonce) 228 if (NULL != nonce)
229 memcpy (&purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket), 229 memcpy (((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
230 nonce, 230 nonce,
231 strlen (nonce)); 231 strlen (nonce));
232 if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer, 232 if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer,
@@ -365,7 +365,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
365 } 365 }
366 if (NULL != nonce_str) 366 if (NULL != nonce_str)
367 memcpy (nonce_str, 367 memcpy (nonce_str,
368 &purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket), 368 ((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
369 strlen (nonce_str)); 369 strlen (nonce_str));
370 if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN, 370 if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
371 purpose, 371 purpose,