[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: hash fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: hash fix |
Date: |
Wed, 04 Sep 2019 21:08:58 +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 a03894d17 hash fix
a03894d17 is described below
commit a03894d17d70a919e707bb2ade569e66037ff111
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Sep 4 21:06:34 2019 +0200
hash fix
---
src/reclaim/oidc_helper.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 40b07a5d0..e686a67a1 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -54,12 +54,12 @@ struct OIDC_Parameters
/**
* The length of the PKCE code_challenge
*/
- uint16_t code_challenge_len GNUNET_PACKED;
+ uint32_t code_challenge_len GNUNET_PACKED;
/**
* The length of the attributes list
*/
- uint16_t attr_list_len GNUNET_PACKED;
+ uint32_t attr_list_len GNUNET_PACKED;
};
GNUNET_NETWORK_STRUCT_END
@@ -608,7 +608,7 @@ OIDC_parse_authz_code (const struct
GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv,
params = (struct OIDC_Parameters *) plaintext;
// cmp code_challenge code_verifier
- code_verifier_hash = GNUNET_malloc (strlen (code_verifier));
+ code_verifier_hash = GNUNET_malloc (256 / 8);
// hash code verifier
gcry_md_hash_buffer (GCRY_MD_SHA256,
code_verifier_hash,
@@ -616,7 +616,7 @@ OIDC_parse_authz_code (const struct
GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv,
strlen (code_verifier));
// encode code verifier
expected_code_challenge =
- base64_encode (code_verifier_hash, strlen (code_verifier_hash));
+ base64_encode (code_verifier_hash, 256 / 8);
code_challenge = (char*)¶ms[1];
code_challenge_len = ntohl (params->code_challenge_len);
GNUNET_free (code_verifier_hash);
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: hash fix,
gnunet <=