exchange

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

commit e6bcbd60618b65a05d8436d8be56090e7babc5d9
parent 8c7e073aa7d45f4dc8ce9b0a517cc03fba2f3fad
Author: Florian Dold <dold@taler.net>
Date:   Sun,  6 Sep 2026 12:41:06 +0200

auditor client: accept protocol 2 and deposit confirmation status 204

Advertise the implemented auditor protocol and recognize successful
deposit confirmations with the current HTTP status.

Diffstat:
Msrc/lib/auditor_api_get_config.c | 2+-
Msrc/lib/auditor_api_put_deposit_confirmation.c | 2+-
Msrc/testing/test_auditor_api.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/auditor_api_get_config.c b/src/lib/auditor_api_get_config.c @@ -32,7 +32,7 @@ * Which revision of the Taler auditor protocol is implemented * by this library? Used to determine compatibility. */ -#define TALER_PROTOCOL_CURRENT 1 +#define TALER_PROTOCOL_CURRENT 2 /** * How many revisions back are we compatible to? diff --git a/src/lib/auditor_api_put_deposit_confirmation.c b/src/lib/auditor_api_put_deposit_confirmation.c @@ -92,7 +92,7 @@ handle_deposit_confirmation_finished (void *cls, case 0: dcr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; break; - case MHD_HTTP_OK: + case MHD_HTTP_NO_CONTENT: dcr.hr.ec = TALER_EC_NONE; break; case MHD_HTTP_BAD_REQUEST: diff --git a/src/testing/test_auditor_api.c b/src/testing/test_auditor_api.c @@ -636,7 +636,7 @@ run (void *cls, "massive-deposit-10", 1, "EUR:0.99", - MHD_HTTP_OK), + MHD_HTTP_NO_CONTENT), // CMD_RUN_AUDITOR ("massive-auditor"), TALER_TESTING_cmd_end ()