aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-18 18:34:20 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-18 18:34:20 +0200
commita075795020d665fd12cf99e96f08969e6df9406a (patch)
treee75f9a1cdcce382f66380fb55c531994b5fdeefc /src/lib
parent534edf2d0fc0e2a03736b9251703bad2ffaf14f7 (diff)
parent31cbfee2a09c7fce866cec5c8aebf1b4f8b75cb8 (diff)
Merge branch 'master' of git+ssh://git.taler.net/merchant
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_post_order_pay.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/merchant_api_post_order_pay.c b/src/lib/merchant_api_post_order_pay.c
index fc188a98..c246a1d4 100644
--- a/src/lib/merchant_api_post_order_pay.c
+++ b/src/lib/merchant_api_post_order_pay.c
@@ -265,11 +265,6 @@ handle_pay_finished (void *cls,
if (oph->am_wallet)
{
/* Here we can (and should) verify the merchant's signature */
- struct TALER_PaymentResponsePS pr = {
- .purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_PAYMENT_OK),
- .purpose.size = htonl (sizeof (pr)),
- .h_contract_terms = oph->h_contract_terms
- };
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("sig",
&merchant_sig),
@@ -289,10 +284,9 @@ handle_pay_finished (void *cls,
}
if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_MERCHANT_PAYMENT_OK,
- &pr,
- &merchant_sig.eddsa_sig,
- &oph->merchant_pub.eddsa_pub))
+ TALER_merchant_pay_verify (&oph->h_contract_terms,
+ &oph->merchant_pub,
+ &merchant_sig))
{
GNUNET_break_op (0);
hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;