From d7d790a98d4bd471efb41a5a82dc148969c5de36 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Nov 2024 20:37:01 +0100 Subject: implement protocol v22, fixes #9185 --- src/backend/taler-merchant-httpd_post-orders-ID-claim.c | 2 +- src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; icoins_cnt; i++) { struct DepositConfirmation *dc = &pc->dc[i]; -- cgit v1.2.3