summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-27 10:41:28 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-27 10:41:28 +0200
commit27ab65168f8c5024a1ad4220e7483a2b8ceeb5bb (patch)
treefc53c567506bb421dff44bbd6046dc7eb888fac9
parentd50651cdfa34213d33c5f8651cbeeba10cc37cfd (diff)
downloadmerchant-27ab65168f8c5024a1ad4220e7483a2b8ceeb5bb.tar.gz
merchant-27ab65168f8c5024a1ad4220e7483a2b8ceeb5bb.tar.bz2
merchant-27ab65168f8c5024a1ad4220e7483a2b8ceeb5bb.zip
pass wallet data hash to deposit signature validation
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index c74d02fd..25661a4e 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1245,6 +1245,7 @@ AGE_FAIL:
.merchant_payto_uri = pc->wm->payto_uri,
.wire_salt = pc->wm->wire_salt,
.h_contract_terms = pc->h_contract_terms,
+ .wallet_data_hash = pc->h_wallet_data,
.wallet_timestamp = pc->timestamp,
.merchant_pub = hc->instance->merchant_pub,
.refund_deadline = pc->refund_deadline
@@ -2717,7 +2718,7 @@ phase_parse_wallet_data (struct PayContext *pc)
}
TALER_json_hash (pc->wallet_data,
- &pc->h_wallet_data);
+ &pc->h_wallet_data);
pc->phase = PP_CHECK_CONTRACT;
}