gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: RECLAIM/OIDC: nonce logging


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: RECLAIM/OIDC: nonce logging
Date: Sat, 27 Apr 2019 11:12:53 +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 b012c3f7b RECLAIM/OIDC: nonce logging
b012c3f7b is described below

commit b012c3f7b0156bf682894f4486ef628f8acf4078
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sat Apr 27 11:12:38 2019 +0200

    RECLAIM/OIDC: nonce logging
---
 src/reclaim/oidc_helper.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index fb0fb2e08..abe7fa623 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -360,6 +360,8 @@ OIDC_build_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
       GNUNET_free_non_null (attrs_ser);
       return NULL;
     }
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Got nonce: %u from %s\n", nonce, nonce_str);
   }
   nonce_tmp = htonl (nonce);
   memcpy (buf_ptr, &nonce_tmp, sizeof (uint32_t));
@@ -415,7 +417,7 @@ OIDC_parse_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPublicKey *audience,
   size_t code_payload_len;
   size_t attrs_ser_len;
   size_t signature_offset;
-  uint32_t nonce;
+  uint32_t nonce = 0;
 
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Trying to decode `%s'", code);
   code_payload = NULL;
@@ -440,6 +442,8 @@ OIDC_parse_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPublicKey *audience,
   attrs_ser_len -= sizeof (struct GNUNET_RECLAIM_Ticket);
   ptr += sizeof (struct GNUNET_RECLAIM_Ticket);
   nonce = ntohl (*((uint32_t *) ptr));
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Got nonce: %u\n", nonce);
   attrs_ser_len -= sizeof (uint32_t);
   ptr += sizeof (uint32_t);
   attrs_ser_len -= sizeof (struct GNUNET_CRYPTO_EcdsaSignature);

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



reply via email to

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