summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-10-29 12:36:30 +0100
committerChristian Grothoff <christian@grothoff.org>2023-10-29 12:36:30 +0100
commitec1dde17ffd66433024f16f5ca83394738cb4baa (patch)
tree7d9f56eabd8f3bf6699782062116c1b3ba82bde2
parent9959918480a5e03af69aed91e9dfe88d0b2cfc7c (diff)
downloadexchange-ec1dde17ffd66433024f16f5ca83394738cb4baa.tar.gz
exchange-ec1dde17ffd66433024f16f5ca83394738cb4baa.tar.bz2
exchange-ec1dde17ffd66433024f16f5ca83394738cb4baa.zip
init pub_key_hash when fetching from DB
-rw-r--r--src/pq/pq_result_helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c
index d9a3d8fd5..c32e0d0e8 100644
--- a/src/pq/pq_result_helper.c
+++ b/src/pq/pq_result_helper.c
@@ -482,6 +482,9 @@ extract_denom_pub (void *cls,
return GNUNET_SYSERR;
}
pk->bsign_pub_key = bpk;
+ GNUNET_CRYPTO_hash (res,
+ len,
+ &bpk->pub_key_hash);
return GNUNET_OK;
case GNUNET_CRYPTO_BSA_CS:
if (sizeof (bpk->details.cs_public_key) != len)
@@ -494,6 +497,9 @@ extract_denom_pub (void *cls,
res,
len);
pk->bsign_pub_key = bpk;
+ GNUNET_CRYPTO_hash (res,
+ len,
+ &bpk->pub_key_hash);
return GNUNET_OK;
}
GNUNET_break (0);