exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d037d98236ad24d4c4044e8023e21bb2ae7c541b
parent ff0d2f1de86df19e342923dc27b84673305ca808
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  7 Feb 2026 18:47:58 +0100

update GANA, fix compiler warning

Diffstat:
Msrc/include/taler/taler_error_codes.h | 4++--
Msrc/json/json_helper.c | 5+++--
Msrc/util/taler_error_codes.c | 4++--
3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -2424,11 +2424,11 @@ enum TALER_ErrorCode /** - * The merchant was unable to obtain a valid answer to /wire from the exchange. + * The master key of the exchange does not match the one configured for this merchant. As a result, we refuse to do business with this exchange. The administrator should check if they configured the exchange correctly in the merchant backend. * Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502). * (A value of 0 indicates that the error is generated client-side). */ - TALER_EC_MERCHANT_GENERIC_EXCHANGE_WIRE_REQUEST_FAILED = 2002, + TALER_EC_MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH = 2002, /** diff --git a/src/json/json_helper.c b/src/json/json_helper.c @@ -2256,14 +2256,15 @@ TALER_JSON_spec_array_of_blinded_denom_sigs ( size_t num_entries, struct TALER_BlindedDenominationSignature *entries) { - for (size_t i = 0; i<num_entries; i++) - entries[i].blinded_sig = NULL; struct GNUNET_JSON_Specification ret = { .parser = &parse_array_of_blinded_denom_sigs, .ptr = entries, .field = field, .cls = (void *) num_entries, }; + + for (size_t i = 0; i<num_entries; i++) + entries[i].blinded_sig = NULL; return ret; } diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c @@ -2413,9 +2413,9 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { { /* 2002 */ - .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_WIRE_REQUEST_FAILED, + .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH, .hint = gettext_noop ( - "The merchant was unable to obtain a valid answer to /wire from the exchange."), + "The master key of the exchange does not match the one configured for this merchant. As a result, we refuse to do business with this exchange. The administrator should check if they configured the exchange correctly in the merchant backend."), .http_code = MHD_HTTP_BAD_GATEWAY },