diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-11 15:33:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-11 15:33:01 +0200 |
commit | dae8235928105f24f3178cdd2bcfa67ac0fb21c3 (patch) | |
tree | db60f58b780d8dffd43e3408cb978e654f46eca8 /src/lib/exchange_api_refund.c | |
parent | 3b99f24648f477a2b7afd890657bb2675e211d31 (diff) | |
download | exchange-dae8235928105f24f3178cdd2bcfa67ac0fb21c3.tar.gz exchange-dae8235928105f24f3178cdd2bcfa67ac0fb21c3.tar.bz2 exchange-dae8235928105f24f3178cdd2bcfa67ac0fb21c3.zip |
improve wallet_Data support in exchange APIs
Diffstat (limited to 'src/lib/exchange_api_refund.c')
-rw-r--r-- | src/lib/exchange_api_refund.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c index 83f9612df..3f12f28d6 100644 --- a/src/lib/exchange_api_refund.c +++ b/src/lib/exchange_api_refund.c @@ -234,6 +234,8 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh, bool no_hac; struct TALER_ExtensionPolicyHashP h_policy; bool no_h_policy; + struct GNUNET_HashCode wallet_data_hash; + bool no_wallet_data_hash; struct GNUNET_TIME_Timestamp wallet_timestamp; struct TALER_MerchantPublicKeyP merchant_pub; struct GNUNET_TIME_Timestamp refund_deadline; @@ -253,6 +255,10 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh, GNUNET_JSON_spec_fixed_auto ("h_policy", &h_policy), &no_h_policy), + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_fixed_auto ("wallet_data_hash", + &wallet_data_hash), + &no_wallet_data_hash), GNUNET_JSON_spec_timestamp ("timestamp", &wallet_timestamp), GNUNET_JSON_spec_timestamp ("refund_deadline", @@ -277,6 +283,8 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh, &deposit_fee, &h_wire, &h_contract_terms, + no_wallet_data_hash ? NULL : + &wallet_data_hash, no_hac ? NULL : &h_age_commitment, no_h_policy ? NULL: &h_policy, &h_denom_pub, |