summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-09-04 21:24:49 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-09-04 21:24:49 +0200
commitf6c748e912feb2266bc2e487895962852f058a46 (patch)
tree844e43ec5641028702b325f94255b1bf40a4305e /src
parenta03894d17d70a919e707bb2ade569e66037ff111 (diff)
better debug output
Diffstat (limited to 'src')
-rw-r--r--src/reclaim/oidc_helper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index e686a67a1..9878506e8 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -570,8 +570,8 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv,
struct GNUNET_CRYPTO_EcdsaSignature *signature;
struct GNUNET_CRYPTO_EcdsaPublicKey ecdsa_pub;
struct GNUNET_CRYPTO_EcdhePublicKey *ecdh_pub;
- size_t code_challenge_len;
- size_t attrs_ser_len;
+ uint32_t code_challenge_len;
+ uint32_t attrs_ser_len;
size_t plaintext_len;
size_t code_payload_len;
uint32_t nonce = 0;
@@ -624,7 +624,9 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv,
(0 !=
strncmp (expected_code_challenge, code_challenge, code_challenge_len)))
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid code verifier\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Invalid code verifier! Expected: %s, Got: %.*s\n",
+ expected_code_challenge, code_challenge_len, code_challenge);
GNUNET_free_non_null (code_payload);
GNUNET_free (expected_code_challenge);
return GNUNET_SYSERR;