diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-28 20:25:45 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-28 20:25:45 +0200 |
commit | ded7f9ca189d8abbfcb6eb874d68bdc1a644da8f (patch) | |
tree | e939971252fa7e25e799063f3f5cbc23e243853d /src/exchange/taler-exchange-httpd_responses.c | |
parent | 379c580efc9d8da331e1d32dbde28111caf18a9b (diff) | |
download | exchange-ded7f9ca189d8abbfcb6eb874d68bdc1a644da8f.tar.gz exchange-ded7f9ca189d8abbfcb6eb874d68bdc1a644da8f.tar.bz2 exchange-ded7f9ca189d8abbfcb6eb874d68bdc1a644da8f.zip |
-fix issue with missing signature over denomination and age restriction hash in purse deposit
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 429647e16..92c585b4d 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -391,6 +391,10 @@ TEH_RESPONSE_compile_transaction_history ( { struct TALER_EXCHANGEDB_PurseDepositListEntry *pd = pos->details.purse_deposit; + const struct TALER_AgeCommitmentHash *phac = NULL; + + if (! pd->no_age_commitment) + phac = &pd->h_age_commitment; if (0 != json_array_append_new ( @@ -404,6 +408,9 @@ TEH_RESPONSE_compile_transaction_history ( NULL == pd->exchange_base_url ? TEH_base_url : pd->exchange_base_url), + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_data_auto ("h_age_commitment", + phac)), GNUNET_JSON_pack_data_auto ("purse_pub", &pd->purse_pub), GNUNET_JSON_pack_bool ("refunded", |