[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -remove dependency on refund str
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -remove dependency on refund struct |
Date: |
Wed, 30 Mar 2022 01:00:16 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new e184d373 -remove dependency on refund struct
e184d373 is described below
commit e184d373aaa78441d18d1a8eaf94d2edc4502868
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Mar 30 00:57:58 2022 +0200
-remove dependency on refund struct
---
src/lib/merchant_api_post_order_abort.c | 34 ++++++++++++---------------------
1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/src/lib/merchant_api_post_order_abort.c
b/src/lib/merchant_api_post_order_abort.c
index f03d6bcc..406a6015 100644
--- a/src/lib/merchant_api_post_order_abort.c
+++ b/src/lib/merchant_api_post_order_abort.c
@@ -172,29 +172,19 @@ check_abort_refund (struct
TALER_MERCHANT_OrderAbortHandle *oah,
return GNUNET_SYSERR;
}
+ if (GNUNET_OK !=
+ TALER_exchange_online_refund_confirmation_verify (
+ &oah->h_contract_terms,
+ &oah->coins[i].coin_pub,
+ &oah->merchant_pub,
+ 0, /*
transaction id */
+ &oah->coins[i].amount_with_fee,
+ &res[i].exchange_pub,
+ &res[i].exchange_sig))
{
- struct TALER_RefundConfirmationPS rr = {
- .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_REFUND),
- .purpose.size = htonl (sizeof (rr)),
- .h_contract_terms = oah->h_contract_terms,
- .coin_pub = oah->coins[i].coin_pub,
- .merchant = oah->merchant_pub,
- .rtransaction_id = GNUNET_htonll (0)
- };
-
- TALER_amount_hton (&rr.refund_amount,
- &oah->coins[i].amount_with_fee);
- if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_verify (
- TALER_SIGNATURE_EXCHANGE_CONFIRM_REFUND,
- &rr,
- &res[i].exchange_sig.eddsa_signature,
- &res[i].exchange_pub.eddsa_pub))
- {
- GNUNET_break_op (0);
- GNUNET_JSON_parse_free (spec);
- return GNUNET_SYSERR;
- }
+ GNUNET_break_op (0);
+ GNUNET_JSON_parse_free (spec);
+ return GNUNET_SYSERR;
}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -remove dependency on refund struct,
gnunet <=