diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-09 20:37:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-09 20:37:06 +0100 |
commit | d7d790a98d4bd471efb41a5a82dc148969c5de36 (patch) | |
tree | 9a845fdf11b6469c6b5690668a3fee1cea09dd8f | |
parent | bdd9f0e90a41bd449810a1b2d30cd8261ce34916 (diff) |
implement protocol v22, fixes #9185
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-claim.c | 2 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c index 16b69c53..de42c438 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c @@ -272,7 +272,7 @@ TMH_post_orders_ID_claim (const struct TMH_RequestHandler *rh, /* create contract signature */ { struct TALER_PrivateContractHashP hash; - struct GNUNET_CRYPTO_EddsaSignature merchant_sig; + struct TALER_MerchantSignatureP merchant_sig; /** * Hash of the JSON contract in UTF-8 including 0-termination, 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 e6097a50..9a85bb05 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1458,6 +1458,9 @@ AGE_FAIL: enum TALER_ErrorCode ec; size_t off = 0; + TALER_merchant_contract_sign (&pc->h_contract_terms, + &pc->hc->instance->merchant_priv, + &dcd.merchant_sig); for (size_t i = 0; i<pc->coins_cnt; i++) { struct DepositConfirmation *dc = &pc->dc[i]; |