commit b9ccd7ea271b5e78617a6250659c7b781aa2393a
parent 6dbfa41e3fc6657eff28d11166d24301cdfa93ff
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Jun 2026 23:17:10 +0200
allow h_age_commitment to be NULL
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c
@@ -1367,10 +1367,11 @@ TALER_wallet_purse_deposit_sign (
.purpose.size = htonl (sizeof (pm)),
.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_PURSE_DEPOSIT),
.purse_pub = *purse_pub,
- .h_denom_pub = *h_denom_pub,
- .h_age_commitment = *h_age_commitment
+ .h_denom_pub = *h_denom_pub
};
+ if (NULL != h_age_commitment)
+ pm.h_age_commitment = *h_age_commitment;
GNUNET_CRYPTO_hash (exchange_base_url,
strlen (exchange_base_url) + 1,
&pm.h_exchange_base_url);
@@ -1396,10 +1397,11 @@ TALER_wallet_purse_deposit_verify (
.purpose.size = htonl (sizeof (pm)),
.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_PURSE_DEPOSIT),
.purse_pub = *purse_pub,
- .h_denom_pub = *h_denom_pub,
- .h_age_commitment = *h_age_commitment
+ .h_denom_pub = *h_denom_pub
};
+ if (NULL != h_age_commitment)
+ pm.h_age_commitment = *h_age_commitment;
GNUNET_CRYPTO_hash (exchange_base_url,
strlen (exchange_base_url) + 1,
&pm.h_exchange_base_url);