From: Schanzenbach, Martin Date: Wed, 4 Sep 2019 19:24:49 +0000 (+0200) Subject: better debug output X-Git-Tag: v0.11.7~166 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f6c748e912feb2266bc2e487895962852f058a46;p=oweals%2Fgnunet.git better debug output --- 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;