commit e6825e24b62165d28b1bfd70bd81619dfb75cd81
parent 275b6d03265fdfffa00d2f41cae869560911f4cb
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 10 Dec 2024 20:08:50 +0100
initialize hash on receive
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
@@ -757,6 +757,8 @@ parse_token_pub (void *cls,
GNUNET_free (bsign_pub);
return GNUNET_SYSERR;
}
+ GNUNET_CRYPTO_rsa_public_key_hash (bsign_pub->details.rsa_public_key,
+ &bsign_pub->pub_key_hash);
token_pub->public_key = bsign_pub;
return GNUNET_OK;
}
@@ -779,6 +781,9 @@ parse_token_pub (void *cls,
GNUNET_free (bsign_pub);
return GNUNET_SYSERR;
}
+ GNUNET_CRYPTO_hash (&bsign_pub->details.cs_public_key,
+ sizeof(bsign_pub->details.cs_public_key),
+ &bsign_pub->pub_key_hash);
token_pub->public_key = bsign_pub;
return GNUNET_OK;
}