summaryrefslogtreecommitdiff
path: root/src/reclaim
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-07-23 14:10:33 +0200
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-07-23 14:10:33 +0200
commita84e3a97d067bb36d350ee6acb09772fcda37127 (patch)
tree6977b954b895892e9772bd4f28bb4c24bad0f3c6 /src/reclaim
parente3383d7cd239905487bfae46967256bb2a1a98ab (diff)
fix signature check
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 f63e38e9a..1e9e64fec 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -364,8 +364,8 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
}
if (NULL != nonce_str)
- memcpy (nonce_str,
- ((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
+ memcpy (((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
+ nonce_str,
strlen (nonce_str));
if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
purpose,