gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: better debug output


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: better debug output
Date: Wed, 04 Sep 2019 21:26:48 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new f6c748e91 better debug output
f6c748e91 is described below

commit f6c748e912feb2266bc2e487895962852f058a46
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Sep 4 21:24:49 2019 +0200

    better debug output
---
 src/reclaim/oidc_helper.c | 8 +++++---
 1 file 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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]