From 8d312562bf04eeb2afac53a2f24624f8e48529bd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 18:51:14 +0100 Subject: adjust ECs --- src/lib/exchange_api_wire.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lib/exchange_api_wire.c') diff --git a/src/lib/exchange_api_wire.c b/src/lib/exchange_api_wire.c index fec2b990e..f70c00864 100644 --- a/src/lib/exchange_api_wire.c +++ b/src/lib/exchange_api_wire.c @@ -219,7 +219,7 @@ handle_wire_finished (void *cls, switch (response_code) { case 0: - hr.ec = TALER_EC_INVALID_RESPONSE; + hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; break; case MHD_HTTP_OK: { @@ -242,7 +242,7 @@ handle_wire_finished (void *cls, /* bogus reply */ GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } if (0 == (num_accounts = json_array_size (accounts))) @@ -251,7 +251,7 @@ handle_wire_finished (void *cls, GNUNET_break_op (0); GNUNET_JSON_parse_free (spec); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } if (NULL == (fm = parse_fees (fees))) @@ -260,7 +260,7 @@ handle_wire_finished (void *cls, GNUNET_break_op (0); GNUNET_JSON_parse_free (spec); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } @@ -289,7 +289,7 @@ handle_wire_finished (void *cls, /* bogus reply */ GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_SIGNATURE_INVALID; + hr.ec = TALER_EC_EXCHANGE_WIRE_SIGNATURE_INVALID; break; } if (GNUNET_OK != @@ -300,7 +300,7 @@ handle_wire_finished (void *cls, /* bogus reply */ GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } if (NULL == (method = TALER_payto_get_method (wa->payto_uri))) @@ -308,7 +308,7 @@ handle_wire_finished (void *cls, /* bogus reply */ GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; } if (NULL == (wa->fees = lookup_fee (fm, @@ -317,7 +317,7 @@ handle_wire_finished (void *cls, /* bogus reply */ GNUNET_break_op (0); hr.http_status = 0; - hr.ec = TALER_EC_SERVER_JSON_INVALID; + hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; GNUNET_free (method); break; } -- cgit v1.2.3