aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/oidc_helper.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-04-26 17:56:56 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-04-26 17:56:56 +0200
commitd3cbf285ef96ba62861036370b3e0f0571d7d914 (patch)
treedcde1fad8494ff1ec7816f8e3e5d74b4218af68c /src/reclaim/oidc_helper.c
parentc93151af83e11000185eb3dcfa3910f8327e4565 (diff)
downloadgnunet-d3cbf285ef96ba62861036370b3e0f0571d7d914.tar.gz
gnunet-d3cbf285ef96ba62861036370b3e0f0571d7d914.zip
ftbfs
Diffstat (limited to 'src/reclaim/oidc_helper.c')
-rw-r--r--src/reclaim/oidc_helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 140b0a479..82f01b755 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -346,7 +346,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
346 if ((1 != SSCANF (nonce_str, "%u", &nonce)) || (nonce > UINT32_MAX)) 346 if ((1 != SSCANF (nonce_str, "%u", &nonce)) || (nonce > UINT32_MAX))
347 { 347 {
348 GNUNET_break (0); 348 GNUNET_break (0);
349 GNUNET_log (GNUNET_ERROR_LOG_ERROR, 349 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
350 "Invalid nonce %s\n", nonce_str); 350 "Invalid nonce %s\n", nonce_str);
351 GNUNET_free (code_payload); 351 GNUNET_free (code_payload);
352 GNUNET_free_non_null (attrs_ser); 352 GNUNET_free_non_null (attrs_ser);
@@ -365,7 +365,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
365 if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer, purpose, &signature)) 365 if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer, purpose, &signature))
366 { 366 {
367 GNUNET_break (0); 367 GNUNET_break (0);
368 GNUNET_log (GNUNET_ERROR_LOG_ERROR, 368 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
369 "Unable to sign code\n"); 369 "Unable to sign code\n");
370 GNUNET_free (code_payload); 370 GNUNET_free (code_payload);
371 GNUNET_free_non_null (attrs_ser); 371 GNUNET_free_non_null (attrs_ser);
@@ -418,7 +418,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
418 attrs_ser_len -= sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose); 418 attrs_ser_len -= sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose);
419 *ticket = *((struct GNUNET_RECLAIM_Ticket *) &purpose[1]); 419 *ticket = *((struct GNUNET_RECLAIM_Ticket *) &purpose[1]);
420 attrs_ser_len -= sizeof (struct GNUNET_RECLAIM_Ticket); 420 attrs_ser_len -= sizeof (struct GNUNET_RECLAIM_Ticket);
421 nonce = ntohs (((unsigned int *) &ticket[1])); 421 nonce = ntohs (*((unsigned int *) &ticket[1]));
422 attrs_ser_len -= sizeof (unsigned int); 422 attrs_ser_len -= sizeof (unsigned int);
423 ptr = code_payload; 423 ptr = code_payload;
424 signature_offset = 424 signature_offset =