From 744322fdda3c459524a981e32211f987ef8ca983 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 Mar 2020 00:50:18 +0100 Subject: the big EC rename --- src/auditor/taler-helper-auditor-render.py | 0 src/exchange-tools/taler-exchange-keyup.c | 2 +- src/exchange/taler-exchange-httpd_deposits_get.c | 8 +- src/exchange/taler-exchange-httpd_link.c | 2 +- src/exchange/taler-exchange-httpd_melt.c | 22 +- .../taler-exchange-httpd_refreshes_reveal.c | 40 +-- src/exchange/taler-exchange-httpd_transfers_get.c | 10 +- src/include/taler_error_codes.h | 393 +++++++++++---------- src/lib/exchange_api_handle.c | 2 +- src/lib/exchange_api_link.c | 2 +- src/lib/exchange_api_refreshes_reveal.c | 2 +- src/lib/exchange_api_transfers_get.c | 2 +- src/testing/testing_api_cmd_batch.c | 2 +- src/testing/testing_api_loop.c | 2 +- 14 files changed, 247 insertions(+), 242 deletions(-) mode change 100755 => 100644 src/auditor/taler-helper-auditor-render.py (limited to 'src') diff --git a/src/auditor/taler-helper-auditor-render.py b/src/auditor/taler-helper-auditor-render.py old mode 100755 new mode 100644 diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 9f7e01f40..645d73cda 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -767,7 +767,7 @@ create_denomkey_issue ( GNUNET_assert (NULL != dki->denom_priv.rsa_private_key); dki->denom_pub.rsa_public_key = GNUNET_CRYPTO_rsa_private_key_get_public ( - dki->denom_priv.rsa_private_key); + dki->denom_priv.rsa_private_key); GNUNET_CRYPTO_rsa_public_key_hash (dki->denom_pub.rsa_public_key, &dki->issue.properties.denom_hash); dki->issue.properties.master = master_public_key; diff --git a/src/exchange/taler-exchange-httpd_deposits_get.c b/src/exchange/taler-exchange-httpd_deposits_get.c index 477473cc7..8a0e1494c 100644 --- a/src/exchange/taler-exchange-httpd_deposits_get.c +++ b/src/exchange/taler-exchange-httpd_deposits_get.c @@ -233,7 +233,7 @@ deposits_get_transaction (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSACTION_DB_FETCH_FAILED, + TALER_EC_DEPOSITS_GET_DB_FETCH_FAILED, "failed to fetch transaction data"); } return qs; @@ -242,7 +242,7 @@ deposits_get_transaction (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_TRACK_TRANSACTION_NOT_FOUND, + TALER_EC_DEPOSITS_GET_NOT_FOUND, "transaction unknown"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -288,7 +288,7 @@ handle_track_transaction_request ( if (GNUNET_SYSERR == ctx.pending) return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSACTION_DB_FEE_INCONSISTENT, + TALER_EC_DEPOSITS_GET_DB_FEE_INCONSISTENT, "fees are inconsistent"); return reply_deposit_details (connection, &tps->h_contract_terms, @@ -387,7 +387,7 @@ TEH_handler_deposits_get (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, - TALER_EC_TRACK_TRANSACTION_MERCHANT_SIGNATURE_INVALID, + TALER_EC_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID, "merchant_sig"); } diff --git a/src/exchange/taler-exchange-httpd_link.c b/src/exchange/taler-exchange-httpd_link.c index f1838dacf..4738a435f 100644 --- a/src/exchange/taler-exchange-httpd_link.c +++ b/src/exchange/taler-exchange-httpd_link.c @@ -164,7 +164,7 @@ link_transaction (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_REFRESH_LINK_COIN_UNKNOWN, + TALER_EC_LINK_COIN_UNKNOWN, "coin_pub"); return GNUNET_DB_STATUS_HARD_ERROR; } diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c index 77fb19362..c4c80c130 100644 --- a/src/exchange/taler-exchange-httpd_melt.c +++ b/src/exchange/taler-exchange-httpd_melt.c @@ -63,7 +63,7 @@ reply_melt_insufficient_funds ( if (NULL == history) return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS, + TALER_EC_MELT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS, "Failed to compile transaction history"); return TALER_MHD_reply_json_pack (connection, MHD_HTTP_CONFLICT, @@ -72,7 +72,7 @@ reply_melt_insufficient_funds ( "insufficient funds", "code", (json_int_t) - TALER_EC_REFRESH_MELT_INSUFFICIENT_FUNDS, + TALER_EC_MELT_INSUFFICIENT_FUNDS, "coin_pub", GNUNET_JSON_from_data_auto (coin_pub), "original_value", @@ -195,7 +195,7 @@ refresh_check_melt (struct MHD_Connection *connection, if (GNUNET_DB_STATUS_HARD_ERROR == qs) *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_DB_FETCH_ERROR, + TALER_EC_MELT_DB_FETCH_ERROR, "failed to fetch old coin history"); return qs; } @@ -222,7 +222,7 @@ refresh_check_melt (struct MHD_Connection *connection, tl); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_MELT_COIN_EXPIRED_NO_ZOMBIE, + TALER_EC_MELT_COIN_EXPIRED_NO_ZOMBIE, "denomination expired"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -237,7 +237,7 @@ refresh_check_melt (struct MHD_Connection *connection, tl); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_COIN_HISTORY_COMPUTATION_FAILED, + TALER_EC_MELT_COIN_HISTORY_COMPUTATION_FAILED, "failed to compute coin transaction history"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -323,7 +323,7 @@ melt_transaction (void *cls, if (GNUNET_DB_STATUS_HARD_ERROR == qs) *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_DB_FETCH_ERROR, + TALER_EC_MELT_DB_FETCH_ERROR, "failed to fetch melt index"); return qs; } @@ -349,7 +349,7 @@ melt_transaction (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_DB_STORE_SESSION_ERROR, + TALER_EC_MELT_DB_STORE_SESSION_ERROR, "failed to persist melt data"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -398,7 +398,7 @@ handle_melt (struct MHD_Connection *connection, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, - TALER_EC_REFRESH_MELT_COIN_SIGNATURE_INVALID, + TALER_EC_MELT_COIN_SIGNATURE_INVALID, "confirm_sig"); } } @@ -491,7 +491,7 @@ check_for_denomination_key (struct MHD_Connection *connection, GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_MELT_DB_FETCH_ERROR, + TALER_EC_MELT_DB_FETCH_ERROR, "failed to find information about old coin"); } /* sanity check */ @@ -561,7 +561,7 @@ check_for_denomination_key (struct MHD_Connection *connection, TEH_KS_release (key_state); return TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, - TALER_EC_REFRESH_MELT_DENOMINATION_SIGNATURE_INVALID, + TALER_EC_MELT_DENOMINATION_SIGNATURE_INVALID, "denom_sig"); } } @@ -593,7 +593,7 @@ check_for_denomination_key (struct MHD_Connection *connection, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_MELT_FEES_EXCEED_CONTRIBUTION, + TALER_EC_MELT_FEES_EXCEED_CONTRIBUTION, "melt amount smaller than melting fee"); } return handle_melt (connection, diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 377baaa1a..876797bab 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -256,7 +256,7 @@ refreshes_reveal_preflight (void *cls, GNUNET_break (qs); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_DB_FETCH_REVEAL_ERROR, + TALER_EC_REVEAL_DB_FETCH_REVEAL_ERROR, "failed to fetch reveal data"); rctx->preflight_ok = GNUNET_SYSERR; return GNUNET_DB_STATUS_HARD_ERROR; @@ -308,7 +308,7 @@ refreshes_reveal_transaction (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_REFRESH_REVEAL_SESSION_UNKNOWN, + TALER_EC_REVEAL_SESSION_UNKNOWN, "rc"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -320,7 +320,7 @@ refreshes_reveal_transaction (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_DB_FETCH_SESSION_ERROR, + TALER_EC_REVEAL_DB_FETCH_SESSION_ERROR, "failed to fetch valid challenge from database"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -413,7 +413,7 @@ refreshes_reveal_transaction (void *cls, "hint", "commitment violation", "code", (json_int_t) - TALER_EC_REFRESH_REVEAL_COMMITMENT_VIOLATION, + TALER_EC_REVEAL_COMMITMENT_VIOLATION, "rc_expected", GNUNET_JSON_from_data_auto ( &rc_expected)); @@ -448,7 +448,7 @@ refreshes_reveal_transaction (void *cls, GNUNET_break_op (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_COST_CALCULATION_OVERFLOW, + TALER_EC_REVEAL_COST_CALCULATION_OVERFLOW, "failed to add up refresh costs"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -459,7 +459,7 @@ refreshes_reveal_transaction (void *cls, GNUNET_break_op (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_AMOUNT_INSUFFICIENT, + TALER_EC_REVEAL_AMOUNT_INSUFFICIENT, "melted coin value is insufficient to cover cost of operation"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -514,7 +514,7 @@ refreshes_reveal_persist (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_DB_COMMIT_ERROR, + TALER_EC_REVEAL_DB_COMMIT_ERROR, "failed to persist reveal data"); } return qs; @@ -626,13 +626,13 @@ resolve_refreshes_reveal_denominations (struct TEH_KS_StateHandle *key_state, case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: res = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_REFRESH_REVEAL_SESSION_UNKNOWN, + TALER_EC_REVEAL_SESSION_UNKNOWN, "rc"); break; case GNUNET_DB_STATUS_HARD_ERROR: res = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_DB_FETCH_SESSION_ERROR, + TALER_EC_REVEAL_DB_FETCH_SESSION_ERROR, "failed to fetch session data"); break; case GNUNET_DB_STATUS_SOFT_ERROR: @@ -685,7 +685,7 @@ resolve_refreshes_reveal_denominations (struct TEH_KS_StateHandle *key_state, GNUNET_break_op (0); res = TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, - TALER_EC_REFRESH_REVEAL_LINK_SIGNATURE_INVALID, + TALER_EC_REVEAL_LINK_SIGNATURE_INVALID, "link_sig"); goto cleanup; } @@ -704,15 +704,15 @@ resolve_refreshes_reveal_denominations (struct TEH_KS_StateHandle *key_state, { rctx->ev_sigs[i].rsa_signature = GNUNET_CRYPTO_rsa_sign_blinded ( - rctx->dkis[i]->denom_priv.rsa_private_key, - rctx->rcds[i].coin_ev, - rctx->rcds[i].coin_ev_size); + rctx->dkis[i]->denom_priv.rsa_private_key, + rctx->rcds[i].coin_ev, + rctx->rcds[i].coin_ev_size); if (NULL == rctx->ev_sigs[i].rsa_signature) { GNUNET_break (0); res = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_SIGNING_ERROR, + TALER_EC_REVEAL_SIGNING_ERROR, "internal signing error"); goto cleanup; } @@ -827,7 +827,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE, + TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE, "new_denoms_h"); } @@ -837,7 +837,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH, + TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH, "new_denoms/coin_evs"); } if (json_array_size (new_denoms_h_json) != @@ -846,7 +846,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH, + TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH, "new_denoms/link_sigs"); } @@ -878,7 +878,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection, TALER_LOG_ERROR ("Lacking keys to operate\n"); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_REFRESH_REVEAL_KEYS_MISSING, + TALER_EC_REVEAL_KEYS_MISSING, "exchange lacks keys"); } ret = resolve_refreshes_reveal_denominations (key_state, @@ -941,7 +941,7 @@ TEH_handler_reveal (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESHES_INVALID_RCH, + TALER_EC_REVEAL_INVALID_RCH, "refresh commitment hash malformed"); } if (0 != strcmp (args[1], @@ -975,7 +975,7 @@ TEH_handler_reveal (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_REFRESH_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID, + TALER_EC_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID, "transfer_privs"); } diff --git a/src/exchange/taler-exchange-httpd_transfers_get.c b/src/exchange/taler-exchange-httpd_transfers_get.c index 3c5b48994..9407ad791 100644 --- a/src/exchange/taler-exchange-httpd_transfers_get.c +++ b/src/exchange/taler-exchange-httpd_transfers_get.c @@ -445,7 +445,7 @@ get_transfer_deposits (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSFER_DB_FETCH_FAILED, + TALER_EC_TRANSFERS_GET_DB_FETCH_FAILED, "failed to fetch transaction data"); } return qs; @@ -455,7 +455,7 @@ get_transfer_deposits (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSFER_DB_INCONSISTENT, + TALER_EC_TRANSFERS_GET_DB_INCONSISTENT, "exchange database internally inconsistent"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -463,7 +463,7 @@ get_transfer_deposits (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_TRACK_TRANSFER_WTID_NOT_FOUND, + TALER_EC_TRANSFERS_GET_WTID_NOT_FOUND, "wtid"); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -484,7 +484,7 @@ get_transfer_deposits (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSFER_WIRE_FEE_NOT_FOUND, + TALER_EC_TRANSFERS_GET_WIRE_FEE_NOT_FOUND, "did not find wire fee"); } return qs; @@ -497,7 +497,7 @@ get_transfer_deposits (void *cls, GNUNET_break (0); *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRACK_TRANSFER_WIRE_FEE_INCONSISTENT, + TALER_EC_TRANSFERS_GET_WIRE_FEE_INCONSISTENT, "could not subtract wire fee"); return GNUNET_DB_STATUS_HARD_ERROR; } diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index be62aa3f0..93479b6cb 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -93,42 +93,42 @@ enum TALER_ErrorCode /** * There is no endpoint defined for the URL provided by the client - * (returned together with a MHD_HTTP_NOT FOUND status code). + * (returned together with a #MHD_HTTP_NOT FOUND status code). */ TALER_EC_ENDPOINT_UNKNOWN = 10, /** * The URI is longer than the longest URI the HTTP server is willing * to parse. Returned together with an HTTP status code of - * MHD_HTTP_URI_TOO_LONG. + * #MHD_HTTP_URI_TOO_LONG. */ TALER_EC_URI_TOO_LONG = 11, /** * The number of segments included in the URI does not match the * number of segments expected by the endpoint. (returned together - * with a MHD_HTTP_NOT FOUND status code). + * with a #MHD_HTTP_NOT FOUND status code). */ TALER_EC_WRONG_NUMBER_OF_SEGMENTS = 12, /** * The exchange failed to even just initialize its connection to the * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DB_SETUP_FAILED = 1001, /** * The exchange encountered an error event to just start the database * transaction. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DB_START_FAILED = 1002, /** * The exchange encountered an error event to commit the database * transaction (hard, unrecoverable error). This response is provided - * with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DB_COMMIT_FAILED_HARD = 1003, @@ -138,41 +138,41 @@ enum TALER_ErrorCode * conflicting transaction. (This indicates a repeated serialization * error; should only happen if some client maliciously tries to * create conflicting concurrent transactions.) This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DB_COMMIT_FAILED_ON_RETRY = 1004, /** * The exchange had insufficient memory to parse the request. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PARSER_OUT_OF_MEMORY = 1005, /** * The JSON in the client's request to the exchange was malformed. * (Generic parse error). This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_JSON_INVALID = 1006, /** * The JSON in the client's request to the exchange was malformed. * Details about the location of the parse error are provided. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_JSON_INVALID_WITH_DETAILS = 1007, /** * A required parameter in the request to the exchange was missing. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PARAMETER_MISSING = 1008, /** * A parameter in the request to the exchange was malformed. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PARAMETER_MALFORMED = 1009, @@ -181,14 +181,14 @@ enum TALER_ErrorCode * coin from the database while generating an insufficient funds * errors. This can happen during /deposit or /recoup requests. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_COIN_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1010, /** * Internal logic error. Some server-side function failed that really * should not. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_INTERNAL_LOGIC_ERROR = 1011, @@ -260,14 +260,14 @@ enum TALER_ErrorCode * requested withdraw operation at this time. The response includes * the current "balance" of the reserve as well as the transaction * "history" that lead to this balance. This response is provided - * with HTTP status code MHD_HTTP_CONFLICT. + * with HTTP status code #MHD_HTTP_CONFLICT. */ TALER_EC_WITHDRAW_INSUFFICIENT_FUNDS = 1100, /** * The exchange has no information about the "reserve_pub" that was * given. This response is provided with HTTP status code - * MHD_HTTP_NOT_FOUND. + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_WITHDRAW_RESERVE_UNKNOWN = 1101, @@ -275,7 +275,8 @@ enum TALER_ErrorCode * The amount to withdraw together with the fee exceeds the numeric * range for Taler amounts. This is not a client failure, as the coin * value and fees come from the exchange's configuration. This - * response is provided with HTTP status code MHD_HTTP_INTERNAL_ERROR. + * response is provided with HTTP status code + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_AMOUNT_FEE_OVERFLOW = 1102, @@ -284,7 +285,7 @@ enum TALER_ErrorCode * that is too big for the numeric range for Taler amounts. This is * not a client failure, as the transaction history comes from the * exchange's configuration. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_ERROR. + * status code #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_AMOUNT_DEPOSITS_OVERFLOW = 1103, @@ -293,7 +294,7 @@ enum TALER_ErrorCode * could not find the denomination key. This is not a client failure, * as the transaction history comes from the exchange's configuration. * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_HISTORIC_DENOMINATION_KEY_NOT_FOUND = 1104, @@ -302,7 +303,7 @@ enum TALER_ErrorCode * big for the numeric range for Taler amounts. This is not a client * failure, as the transaction history comes from the exchange's * configuration. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_AMOUNT_WITHDRAWALS_OVERFLOW = 1105, @@ -310,21 +311,22 @@ enum TALER_ErrorCode * The exchange somehow knows about this reserve, but there seem to * have been no wire transfers made. This is not a client failure, as * this is a database consistency issue of the exchange. This - * response is provided with HTTP status code MHD_HTTP_INTERNAL_ERROR. + * response is provided with HTTP status code + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_RESERVE_WITHOUT_WIRE_TRANSFER = 1106, /** * The exchange failed to create the signature using the denomination * key. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_SIGNATURE_FAILED = 1107, /** * The exchange failed to store the withdraw operation in its * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_DB_STORE_ERROR = 1108, @@ -332,34 +334,34 @@ enum TALER_ErrorCode * The exchange failed to check against historic withdraw data from * database (as part of ensuring the idempotency of the operation). * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_WITHDRAW_DB_FETCH_ERROR = 1109, /** * The exchange is not aware of the denomination key the wallet * requested for the withdrawal. This response is provided with HTTP - * status code MHD_HTTP_NOT_FOUND. + * status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_WITHDRAW_DENOMINATION_KEY_NOT_FOUND = 1110, /** * The signature of the reserve is not valid. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_WITHDRAW_RESERVE_SIGNATURE_INVALID = 1111, /** * When computing the reserve history, we ended up with a negative * overall balance, which should be impossible. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_WITHDRAW_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1112, /** * When computing the reserve history, we ended up with a negative * overall balance, which should be impossible. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_WITHDRAW_RESERVE_HISTORY_IMPOSSIBLE = 1113, @@ -398,7 +400,7 @@ enum TALER_ErrorCode /** * The exchange failed to obtain the transaction history of the given * reserve from the database. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_RESERVE_STATUS_DB_ERROR = 1150, @@ -420,7 +422,7 @@ enum TALER_ErrorCode * /deposit operation (i.e. due to double spending). The "history" in * the respose provides the transaction history of the coin proving * this fact. This response is provided with HTTP status code - * MHD_HTTP_CONFLICT. + * #MHD_HTTP_CONFLICT. */ TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS = 1200, @@ -428,14 +430,14 @@ enum TALER_ErrorCode * The exchange failed to obtain the transaction history of the given * coin from the database (this does not happen merely because the * coin is seen by the exchange for the first time). This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DEPOSIT_HISTORY_DB_ERROR = 1201, /** * The exchange failed to store the /depost information in the * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DEPOSIT_STORE_DB_ERROR = 1202, @@ -445,7 +447,7 @@ enum TALER_ErrorCode * supposed to happen; it can happen if someone decides to purge the * DB behind the back of the exchange process). Hence the deposit is * being refused. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DEPOSIT_DB_DENOMINATION_KEY_UNKNOWN = 1203, @@ -455,41 +457,41 @@ enum TALER_ErrorCode * unavailable for that purpose. This can be because it is entirely * unknown to the exchange or not in the validity period for the * deposit operation. Hence the deposit is being refused. This - * response is provided with HTTP status code MHD_HTTP_NOT_FOUND. + * response is provided with HTTP status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_DEPOSIT_DENOMINATION_KEY_UNKNOWN = 1204, /** * The signature made by the coin over the deposit permission is not * valid. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_COIN_SIGNATURE_INVALID = 1205, /** * The signature of the denomination key over the coin is not valid. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_DENOMINATION_SIGNATURE_INVALID = 1206, /** * The stated value of the coin after the deposit fee is subtracted * would be negative. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE = 1207, /** * The stated refund deadline is after the wire deadline. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE = 1208, /** * The exchange does not recognize the validity of or support the * given wire format type. This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_TYPE = 1209, @@ -500,21 +502,21 @@ enum TALER_ErrorCode * will do some basic sanity checking on the wire details, it cannot * warrant that the banking system will ultimately be able to route to * the specified address, even if this check passed. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_JSON = 1210, /** * The hash of the given wire address does not match the hash * specified in the proposal data. This response is provided with - * HTTP status code MHD_HTTP_BAD_REQUEST. + * HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT = 1211, /** * The exchange detected that the given account number is invalid for * the selected wire format type. This response is provided with HTTP - * status code MHD_HTTP_BAD_REQUEST. + * status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_ACCOUNT_NUMBER = 1213, @@ -526,7 +528,7 @@ enum TALER_ErrorCode /** * Validity period of the denomination key is in the future. Returned - * with an HTTP status of MHD_HTTP_PRECONDITION_FAILED. + * with an HTTP status of #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_DEPOSIT_DENOMINATION_VALIDITY_IN_FUTURE = 1219, @@ -545,7 +547,7 @@ enum TALER_ErrorCode /** * The currency specified for the deposit is different from the * currency of the coin. This response is provided with HTTP status - * code MHD_HTTP_PRECONDITION_FAILED. + * code #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_DEPOSIT_CURRENCY_MISSMATCH = 1222, @@ -554,7 +556,7 @@ enum TALER_ErrorCode * /refresh/melt operation. The "history" in this response provdes * the "residual_value" of the coin, which may be less than its * "original_value". This response is provided with HTTP status code - * MHD_HTTP_CONFLICT. + * #MHD_HTTP_CONFLICT. */ TALER_EC_REFRESH_MELT_INSUFFICIENT_FUNDS = 1300, @@ -563,14 +565,14 @@ enum TALER_ErrorCode * /refresh/melt operation. The "history" in this response provdes * the "residual_value" of the coin, which may be less than its * "original_value". This response is provided with HTTP status code - * MHD_HTTP_CONFLICT. + * #MHD_HTTP_CONFLICT. */ TALER_EC_REFRESH_MELT_DENOMINATION_KEY_NOT_FOUND = 1301, /** * The exchange had an internal error reconstructing the transaction * history of the coin that was being melted. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFRESH_MELT_COIN_HISTORY_COMPUTATION_FAILED = 1302, @@ -578,32 +580,33 @@ enum TALER_ErrorCode * The exchange failed to check against historic melt data from * database (as part of ensuring the idempotency of the operation). * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_MELT_DB_FETCH_ERROR = 1303, /** * The exchange failed to store session data in the database. This - * response is provided with HTTP status code MHD_HTTP_INTERNAL_ERROR. + * response is provided with HTTP status code + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_MELT_DB_STORE_SESSION_ERROR = 1304, /** * The exchange encountered melt fees exceeding the melted coin's * contribution. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_MELT_FEES_EXCEED_CONTRIBUTION = 1305, /** * The denomination key signature on the melted coin is invalid. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_MELT_DENOMINATION_SIGNATURE_INVALID = 1306, /** * The signature made with the coin to be melted is invalid. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_MELT_COIN_SIGNATURE_INVALID = 1307, @@ -611,7 +614,7 @@ enum TALER_ErrorCode * The exchange failed to obtain the transaction history of the given * coin from the database while generating an insufficient funds * errors. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFRESH_MELT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1308, @@ -631,14 +634,14 @@ enum TALER_ErrorCode /** * The currency specified for the melt amount is different from the * currency of the coin. This response is provided with HTTP status - * code MHD_HTTP_PRECONDITION_FAILED. + * code #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_MELT_CURRENCY_MISSMATCH = 1311, /** * The exchange is unaware of the denomination key that was used to * sign the melted zombie coin. This response is provided with HTTP - * status code MHD_HTTP_NOT_FOUND. + * status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_REFRESH_RECOUP_DENOMINATION_KEY_NOT_FOUND = 1351, @@ -664,49 +667,49 @@ enum TALER_ErrorCode * The provided transfer keys do not match up with the original * commitment. Information about the original commitment is included * in the response. This response is provided with HTTP status code - * MHD_HTTP_CONFLICT. + * #MHD_HTTP_CONFLICT. */ TALER_EC_REFRESH_REVEAL_COMMITMENT_VIOLATION = 1370, /** * Failed to produce the blinded signatures over the coins to be * returned. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_REVEAL_SIGNING_ERROR = 1371, /** * The exchange is unaware of the refresh session specified in the * request. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_SESSION_UNKNOWN = 1372, /** * The exchange failed to retrieve valid session data from the * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_REVEAL_DB_FETCH_SESSION_ERROR = 1373, /** * The exchange failed to retrieve previously revealed data from the * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_REVEAL_DB_FETCH_REVEAL_ERROR = 1374, /** * The exchange failed to retrieve commitment data from the database. * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_ERROR. + * #MHD_HTTP_INTERNAL_ERROR. */ TALER_EC_REFRESH_REVEAL_DB_COMMIT_ERROR = 1375, /** * The size of the cut-and-choose dimension of the private transfer * keys request does not match #TALER_CNC_KAPPA - 1. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID = 1376, @@ -714,49 +717,49 @@ enum TALER_ErrorCode * The number of coins to be created in refresh exceeds the limits of * the exchange. private transfer keys request does not match * #TALER_CNC_KAPPA - 1. This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE = 1377, /** * The number of envelopes given does not match the number of * denomination keys given. This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH = 1378, /** * The exchange encountered a numeric overflow totaling up the cost * for the refresh operation. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFRESH_REVEAL_COST_CALCULATION_OVERFLOW = 1379, /** * The exchange's cost calculation shows that the melt amount is below * the costs of the transaction. This response is provided with HTTP - * status code MHD_HTTP_BAD_REQUEST. + * status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_AMOUNT_INSUFFICIENT = 1380, /** * The exchange is unaware of the denomination key that was requested * for one of the fresh coins. This response is provided with HTTP - * status code MHD_HTTP_BAD_REQUEST. + * status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_FRESH_DENOMINATION_KEY_NOT_FOUND = 1381, /** * The signature made with the coin over the link data is invalid. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFRESH_REVEAL_LINK_SIGNATURE_INVALID = 1382, /** * The exchange failed to generate the signature as it could not find * the signing key for the denomination. This response is provided - * with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFRESH_REVEAL_KEYS_MISSING = 1383, @@ -775,7 +778,8 @@ enum TALER_ErrorCode /** * The coin specified in the link request is unknown to the exchange. - * This response is provided with HTTP status code MHD_HTTP_NOT_FOUND. + * This response is provided with HTTP status code + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_REFRESH_LINK_COIN_UNKNOWN = 1400, @@ -791,7 +795,7 @@ enum TALER_ErrorCode * to refund. But without a transaction history, we cannot issue a * refund. This is kind-of OK, the owner should just refresh it * directly without executing the refund. This response is provided - * with HTTP status code MHD_HTTP_NOT_FOUND. + * with HTTP status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_REFUND_COIN_NOT_FOUND = 1500, @@ -799,7 +803,7 @@ enum TALER_ErrorCode * We could not process the refund request as the coin's transaction * history does not permit the requested refund at this time. The * "history" in the response proves this. This response is provided - * with HTTP status code MHD_HTTP_CONFLICT. + * with HTTP status code #MHD_HTTP_CONFLICT. */ TALER_EC_REFUND_CONFLICT = 1501, @@ -808,14 +812,14 @@ enum TALER_ErrorCode * about the specific /deposit operation. Hence, we cannot issue a * refund (as we do not know if this merchant public key is authorized * to do a refund). This response is provided with HTTP status code - * MHD_HTTP_NOT_FOUND. + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_REFUND_DEPOSIT_NOT_FOUND = 1503, /** * The currency specified for the refund is different from the * currency of the coin. This response is provided with HTTP status - * code MHD_HTTP_PRECONDITION_FAILED. + * code #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_REFUND_CURRENCY_MISSMATCH = 1504, @@ -823,7 +827,7 @@ enum TALER_ErrorCode * When we tried to check if we already paid out the coin, the * exchange's database suddenly disagreed with data it previously * provided (internal inconsistency). This response is provided with - * HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFUND_DB_INCONSISTENT = 1505, @@ -831,14 +835,14 @@ enum TALER_ErrorCode * The exchange can no longer refund the customer/coin as the money * was already transferred (paid out) to the merchant. (It should be * past the refund deadline.) This response is provided with HTTP - * status code MHD_HTTP_GONE. + * status code #MHD_HTTP_GONE. */ TALER_EC_REFUND_MERCHANT_ALREADY_PAID = 1506, /** * The amount the exchange was asked to refund exceeds (with fees) the * total amount of the deposit (including fees). This response is - * provided with HTTP status code MHD_HTTP_PRECONDITION_FAILED. + * provided with HTTP status code #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_REFUND_INSUFFICIENT_FUNDS = 1507, @@ -846,7 +850,7 @@ enum TALER_ErrorCode * The exchange failed to recover information about the denomination * key of the refunded coin (even though it recognizes the key). * Hence it could not check the fee strucutre. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFUND_DENOMINATION_KEY_NOT_FOUND = 1508, @@ -854,41 +858,41 @@ enum TALER_ErrorCode * The refund fee specified for the request is lower than the refund * fee charged by the exchange for the given denomination key of the * refunded coin. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFUND_FEE_TOO_LOW = 1509, /** * The exchange failed to store the refund information to its * database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFUND_STORE_DB_ERROR = 1510, /** * The refund fee is specified in a different currency than the refund * amount. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFUND_FEE_CURRENCY_MISSMATCH = 1511, /** * The refunded amount is smaller than the refund fee, which would * result in a negative refund. This response is provided with HTTP - * status code MHD_HTTP_BAD_REQUEST. + * status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFUND_FEE_ABOVE_AMOUNT = 1512, /** * The signature of the merchant is invalid. This response is provided - * with HTTP status code MHD_HTTP_BAD_REQUEST. + * with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_REFUND_MERCHANT_SIGNATURE_INVALID = 1513, /** * Merchant backend failed to create the refund confirmation * signature. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_REFUND_MERCHANT_SIGNING_FAILED = 1514, @@ -901,7 +905,7 @@ enum TALER_ErrorCode /** * The wire format specified in the "sender_account_details" is not * understood or not supported by this exchange. Returned with an HTTP - * status code of MHD_HTTP_NOT_FOUND. (As we did not find an + * status code of #MHD_HTTP_NOT_FOUND. (As we did not find an * interpretation of the wire format.) */ TALER_EC_ADMIN_ADD_INCOMING_WIREFORMAT_UNSUPPORTED = 1600, @@ -909,14 +913,14 @@ enum TALER_ErrorCode /** * The currency specified in the "amount" parameter is not supported * by this exhange. Returned with an HTTP status code of - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_ADMIN_ADD_INCOMING_CURRENCY_UNSUPPORTED = 1601, /** * The exchange failed to store information about the incoming * transfer in its database. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_ADMIN_ADD_INCOMING_DB_STORE = 1602, @@ -924,35 +928,35 @@ enum TALER_ErrorCode * The exchange encountered an error (that is not about not finding * the wire transfer) trying to lookup a wire transfer identifier in * the database. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_FETCH_FAILED = 1700, /** * The exchange found internally inconsistent data when resolving a * wire transfer identifier in the database. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_INCONSISTENT = 1701, /** * The exchange did not find information about the specified wire * transfer identifier in the database. This response is provided - * with HTTP status code MHD_HTTP_NOT_FOUND. + * with HTTP status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_TRACK_TRANSFER_WTID_NOT_FOUND = 1702, /** * The exchange did not find information about the wire transfer fees * it charged. This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_WIRE_FEE_NOT_FOUND = 1703, /** * The exchange found a wire fee that was above the total transfer * value (and thus could not have been charged). This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_WIRE_FEE_INCONSISTENT = 1704, @@ -966,7 +970,7 @@ enum TALER_ErrorCode /** * The exchange found internally inconsistent fee data when resolving * a transaction in the database. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSACTION_DB_FEE_INCONSISTENT = 1800, @@ -974,14 +978,14 @@ enum TALER_ErrorCode * The exchange encountered an error (that is not about not finding * the transaction) trying to lookup a transaction in the database. * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSACTION_DB_FETCH_FAILED = 1801, /** * The exchange did not find information about the specified * transaction in the database. This response is provided with HTTP - * status code MHD_HTTP_NOT_FOUND. + * status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_TRACK_TRANSACTION_NOT_FOUND = 1802, @@ -989,82 +993,82 @@ enum TALER_ErrorCode * The exchange failed to identify the wire transfer of the * transaction (or information about the plan that it was supposed to * still happen in the future). This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSACTION_WTID_RESOLUTION_ERROR = 1803, /** * The signature of the merchant is invalid. This response is provided - * with HTTP status code MHD_HTTP_BAD_REQUEST. + * with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_TRACK_TRANSACTION_MERCHANT_SIGNATURE_INVALID = 1804, /** * The given denomination key is not in the "recoup" set of the * exchange right now. This response is provided with an HTTP status - * code of MHD_HTTP_NOT_FOUND. + * code of #MHD_HTTP_NOT_FOUND. */ TALER_EC_RECOUP_DENOMINATION_KEY_UNKNOWN = 1850, /** * The given coin signature is invalid for the request. This response - * is provided with an HTTP status code of MHD_HTTP_FORBIDDEN. + * is provided with an HTTP status code of #MHD_HTTP_FORBIDDEN. */ TALER_EC_RECOUP_SIGNATURE_INVALID = 1851, /** * The signature of the denomination key over the coin is not valid. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_RECOUP_DENOMINATION_SIGNATURE_INVALID = 1852, /** * The exchange failed to access its own database about reserves. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_RECOUP_DB_FETCH_FAILED = 1853, /** * The exchange could not find the corresponding withdraw operation. * The request is denied. This response is provided with an HTTP - * status code of MHD_HTTP_NOT_FOUND. + * status code of #MHD_HTTP_NOT_FOUND. */ TALER_EC_RECOUP_WITHDRAW_NOT_FOUND = 1854, /** * The exchange obtained an internally inconsistent transaction * history for the given coin. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_RECOUP_HISTORY_DB_ERROR = 1855, /** * The exchange failed to store information about the recoup to be * performed in the database. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_RECOUP_DB_PUT_FAILED = 1856, /** * The coin's remaining balance is zero. The request is denied. This * response is provided with an HTTP status code of - * MHD_HTTP_FORBIDDEN. + * #MHD_HTTP_FORBIDDEN. */ TALER_EC_RECOUP_COIN_BALANCE_ZERO = 1857, /** * The exchange failed to reproduce the coin's blinding. This response * is provided with an HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_RECOUP_BLINDING_FAILED = 1858, /** * The coin's remaining balance is zero. The request is denied. This * response is provided with an HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR + * #MHD_HTTP_INTERNAL_SERVER_ERROR */ TALER_EC_RECOUP_COIN_BALANCE_NEGATIVE = 1859, @@ -1083,27 +1087,27 @@ enum TALER_ErrorCode /** * The "have" parameter was not a natural number. This reponse is - * provied with an HTTP status code of MHD_HTTP_BAD_REQUEST. + * provied with an HTTP status code of #MHD_HTTP_BAD_REQUEST. */ TALER_EC_KEYS_HAVE_NOT_NUMERIC = 1900, /** * We currently cannot find any keys. This reponse is provied with an - * HTTP status code of MHD_HTTP_INTERNAL_SERVER_ERROR. + * HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_KEYS_MISSING = 1901, /** * This exchange does not allow clients to request /keys for times * other than the current (exchange) time. This reponse is provied - * with an HTTP status code of MHD_HTTP_FORBIDDEN. + * with an HTTP status code of #MHD_HTTP_FORBIDDEN. */ TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN = 1902, /** * The backend could not find the merchant instance specified in the * request. This response is provided with HTTP status code - * MHD_HTTP_NOT_FOUND. + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_INSTANCE_UNKNOWN = 2000, @@ -1116,55 +1120,55 @@ enum TALER_ErrorCode /** * The exchange failed to provide a meaningful response to a /deposit * request. This response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_PAY_EXCHANGE_FAILED = 2101, /** * The merchant failed to commit the exchanges' response to a /deposit * request to its database. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_DB_STORE_PAY_ERROR = 2102, /** * The specified exchange is not supported/trusted by this merchant. * This response is provided with HTTP status code - * MHD_HTTP_PRECONDITION_FAILED. + * #MHD_HTTP_PRECONDITION_FAILED. */ TALER_EC_PAY_EXCHANGE_REJECTED = 2103, /** * The denomination key used for payment is not listed among the * denomination keys of the exchange. This response is provided with - * HTTP status code MHD_HTTP_BAD_REQUEST. + * HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_DENOMINATION_KEY_NOT_FOUND = 2104, /** * The denomination key used for payment is not audited by an auditor * approved by the merchant. This response is provided with HTTP - * status code MHD_HTTP_BAD_REQUEST. + * status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_DENOMINATION_KEY_AUDITOR_FAILURE = 2105, /** * There was an integer overflow totaling up the amounts or deposit * fees in the payment. This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_AMOUNT_OVERFLOW = 2106, /** * The deposit fees exceed the total value of the payment. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_FEES_EXCEED_PAYMENT = 2107, /** * After considering deposit fees, the payment is insufficient to * satisfy the required amount for the contract. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_PAYMENT_INSUFFICIENT_DUE_TO_FEES = 2108, @@ -1172,114 +1176,114 @@ enum TALER_ErrorCode * While the merchant is happy to cover all applicable deposit fees, * the payment is insufficient to satisfy the required amount for the * contract. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_PAYMENT_INSUFFICIENT = 2109, /** * The signature over the contract of one of the coins was invalid. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_COIN_SIGNATURE_INVALID = 2110, /** * We failed to contact the exchange for the /pay request. This * response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_PAY_EXCHANGE_TIMEOUT = 2111, /** * The signature over the contract of the merchant was invalid. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_MERCHANT_SIGNATURE_INVALID = 2113, /** * The refund deadline was after the transfer deadline. This response - * is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE = 2114, /** * The request fails to provide coins for the payment. This response - * is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_COINS_ARRAY_EMPTY = 2115, /** * The merchant failed to fetch the merchant's previous state with * respect to a /pay request from its database. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_DB_FETCH_PAY_ERROR = 2116, /** * The merchant failed to fetch the merchant's previous state with * respect to transactions from its database. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_DB_FETCH_TRANSACTION_ERROR = 2117, /** * The transaction ID was used for a conflicing transaction before. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_DB_TRANSACTION_ID_CONFLICT = 2118, /** * The merchant failed to store the merchant's state with respect to * the transaction in its database. This response is provided with - * HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_DB_STORE_TRANSACTION_ERROR = 2119, /** * The exchange failed to provide a valid response to the merchant's * /keys request. This response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_PAY_EXCHANGE_KEYS_FAILURE = 2120, /** * The payment is too late, the offer has expired. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_OFFER_EXPIRED = 2121, /** * The "merchant" field is missing in the proposal data. This response - * is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_PAY_MERCHANT_FIELD_MISSING = 2122, /** * Failed computing a hash code (likely server out-of-memory). This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_FAILED_COMPUTE_PROPOSAL_HASH = 2123, /** * Failed to locate merchant's account information matching the wire * hash given in the proposal. This response is provided with HTTP - * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_WIRE_HASH_UNKNOWN = 2124, /** * We got different currencies for the wire fee and the maximum wire * fee. This response is provided with HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PAY_WIRE_FEE_CURRENCY_MISSMATCH = 2125, /** * The merchant refuses to abort and refund the payment operation as * the payment succeeded already. This response is provided with HTTP - * status code of MHD_HTTP_FORBIDDEN. + * status code of #MHD_HTTP_FORBIDDEN. */ TALER_EC_PAY_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE = 2126, @@ -1292,47 +1296,48 @@ enum TALER_ErrorCode /** * Integer overflow with sepcified timestamp argument detected. This - * response is provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_HISTORY_TIMESTAMP_OVERFLOW = 2200, /** * Failed to retrieve history from merchant database. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_HISTORY_DB_FETCH_ERROR = 2201, /** * The backend could not find the contract specified in the request. - * This response is provided with HTTP status code MHD_HTTP_NOT_FOUND. + * This response is provided with HTTP status code + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_POLL_PAYMENT_CONTRACT_NOT_FOUND = 2250, /** * We failed to contact the exchange for the /track/transaction * request. This response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_TRACK_TRANSACTION_EXCHANGE_TIMEOUT = 2300, /** * The backend could not find the transaction specified in the * request. This response is provided with HTTP status code - * MHD_HTTP_NOT_FOUND. + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_TRACK_TRANSACTION_TRANSACTION_UNKNOWN = 2302, /** * The backend had a database access error trying to retrieve * transaction data from its database. The response is provided with - * HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSACTION_DB_FETCH_TRANSACTION_ERROR = 2303, /** * The backend had a database access error trying to retrieve payment * data from its database. The response is provided with HTTP status - * code MHD_HTTP_INTERNAL_SERVER_ERROR. + * code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSACTION_DB_FETCH_PAYMENT_ERROR = 2304, @@ -1340,84 +1345,84 @@ enum TALER_ErrorCode * The backend found no applicable deposits in the database. This is * odd, as we know about the transaction, but not about deposits we * made for the transaction. The response is provided with HTTP - * status code MHD_HTTP_NOT_FOUND. + * status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_TRACK_TRANSACTION_DB_NO_DEPOSITS_ERROR = 2305, /** * We failed to obtain a wire transfer identifier for one of the coins * in the transaction. The response is provided with HTTP status code - * MHD_HTTP_FAILED_DEPENDENCY if the exchange had a hard error, or - * MHD_HTTP_ACCEPTED if the exchange signaled that the transfer was in - * progress. + * #MHD_HTTP_FAILED_DEPENDENCY if the exchange had a hard error, or + * #MHD_HTTP_ACCEPTED if the exchange signaled that the transfer was + * in progress. */ TALER_EC_TRACK_TRANSACTION_COIN_TRACE_ERROR = 2306, /** * We failed to obtain the full wire transfer identifier for the * transfer one of the coins was aggregated into. The response is - * provided with HTTP status code MHD_HTTP_FAILED_DEPENDENCY. + * provided with HTTP status code #MHD_HTTP_FAILED_DEPENDENCY. */ TALER_EC_TRACK_TRANSACTION_WIRE_TRANSFER_TRACE_ERROR = 2307, /** * We got conflicting reports from the exhange with respect to which * transfers are included in which aggregate. The response is provided - * with HTTP status code MHD_HTTP_FAILED_DEPENDENCY. + * with HTTP status code #MHD_HTTP_FAILED_DEPENDENCY. */ TALER_EC_TRACK_TRANSACTION_CONFLICTING_REPORTS = 2308, /** * We failed to contact the exchange for the /track/transfer request. * This response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_TRACK_TRANSFER_EXCHANGE_TIMEOUT = 2400, /** * We failed to persist coin wire transfer information in our merchant * database. The response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_STORE_COIN_ERROR = 2402, /** * We internally failed to execute the /track/transfer request. The * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_REQUEST_ERROR = 2403, /** * We failed to persist wire transfer information in our merchant * database. The response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_STORE_TRANSFER_ERROR = 2404, /** * The exchange returned an error from /track/transfer. The response - * is provided with HTTP status code MHD_HTTP_FAILED_DEPENDENCY. + * is provided with HTTP status code #MHD_HTTP_FAILED_DEPENDENCY. */ TALER_EC_TRACK_TRANSFER_EXCHANGE_ERROR = 2405, /** * We failed to fetch deposit information from our merchant database. * The response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_FETCH_DEPOSIT_ERROR = 2406, /** * We encountered an internal logic error. The response is provided - * with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TRACK_TRANSFER_DB_INTERNAL_LOGIC_ERROR = 2407, /** * The exchange gave conflicting information about a coin which has * been wire transferred. The response is provided with HTTP status - * code MHD_HTTP_FAILED_DEPENDENCY. + * code #MHD_HTTP_FAILED_DEPENDENCY. */ TALER_EC_TRACK_TRANSFER_CONFLICTING_REPORTS = 2408, @@ -1429,7 +1434,7 @@ enum TALER_ErrorCode /** * The exchange charged a different wire fee than what it originally * advertised, and it is higher. The response is provied with an HTTP - * status of MHD_HTTP_BAD_DEPENDENCY. + * status of #MHD_HTTP_BAD_DEPENDENCY. */ TALER_EC_TRACK_TRANSFER_JSON_BAD_WIRE_FEE = 2410, @@ -1442,7 +1447,7 @@ enum TALER_ErrorCode /** * The backend encountered an error while trying to store the * h_contract_terms into the database. The response is provided with - * HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PROPOSAL_STORE_DB_ERROR = 2501, @@ -1473,21 +1478,21 @@ enum TALER_ErrorCode /** * The backend encountered an error while trying to find the existing * proposal in the database. The response is provided with HTTP status - * code MHD_HTTP_INTERNAL_SERVER_ERROR. + * code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PROPOSAL_STORE_DB_ERROR_HARD = 2506, /** * The backend encountered an error while trying to find the existing * proposal in the database. The response is provided with HTTP status - * code MHD_HTTP_INTERNAL_SERVER_ERROR. + * code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PROPOSAL_STORE_DB_ERROR_SOFT = 2507, /** * The backend encountered an error: the proposal already exists. The * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_PROPOSAL_STORE_DB_ERROR_ALREADY_EXISTS = 2508, @@ -1717,14 +1722,14 @@ enum TALER_ErrorCode /** * We failed to contract terms from our merchant database. The * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_CHECK_PAYMENT_DB_FETCH_CONTRACT_TERMS_ERROR = 2911, /** * We failed to contract terms from our merchant database. The * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_CHECK_PAYMENT_DB_FETCH_ORDER_ERROR = 2912, @@ -1737,13 +1742,13 @@ enum TALER_ErrorCode /** * Failed computing a hash code (likely server out-of-memory). This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_CHECK_PAYMENT_FAILED_COMPUTE_PROPOSAL_HASH = 2914, /** * Signature "session_sig" failed to verify. This response is provided - * with HTTP status code MHD_HTTP_BAD_REQUEST. + * with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_CHECK_PAYMENT_SESSION_SIGNATURE_INVALID = 2915, @@ -1756,21 +1761,21 @@ enum TALER_ErrorCode /** * The auditor had trouble storing the deposit confirmation in its * database. Returned with an HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_DEPOSIT_CONFIRMATION_STORE_DB_ERROR = 3001, /** * The auditor had trouble retrieving the exchange list from its * database. Returned with an HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_LIST_EXCHANGES_DB_ERROR = 3002, /** * The auditor had trouble storing an exchange in its database. * Returned with an HTTP status code of - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_AUDITOR_EXCHANGE_STORE_DB_ERROR = 3003, @@ -1783,38 +1788,38 @@ enum TALER_ErrorCode /** * The exchange failed to compute ECDH. This response is provided - * with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TEST_ECDH_ERROR = 4000, /** * The EdDSA test signature is invalid. This response is provided - * with HTTP status code MHD_HTTP_BAD_REQUEST. + * with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_TEST_EDDSA_INVALID = 4001, /** * The exchange failed to compute the EdDSA test signature. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TEST_EDDSA_ERROR = 4002, /** * The exchange failed to generate an RSA key. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TEST_RSA_GEN_ERROR = 4003, /** * The exchange failed to compute the public RSA key. This response - * is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * is provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TEST_RSA_PUB_ERROR = 4004, /** * The exchange failed to compute the RSA signature. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_TEST_RSA_SIGN_ERROR = 4005, @@ -1923,129 +1928,129 @@ enum TALER_ErrorCode /** * The sync service failed to access its database. This response is - * provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_DB_FETCH_ERROR = 6000, /** * The sync service failed find the record in its database. This - * response is provided with HTTP status code MHD_HTTP_NOT_FOUND. + * response is provided with HTTP status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_SYNC_BACKUP_UNKNOWN = 6001, /** * The sync service failed find the account in its database. This - * response is provided with HTTP status code MHD_HTTP_NOT_FOUND. + * response is provided with HTTP status code #MHD_HTTP_NOT_FOUND. */ TALER_EC_SYNC_ACCOUNT_UNKNOWN = 6002, /** * The SHA-512 hash provided in the If-None-Match header is malformed. * This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_SYNC_BAD_IF_NONE_MATCH = 6003, /** * The SHA-512 hash provided in the If-Match header is malformed or * missing. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_SYNC_BAD_IF_MATCH = 6004, /** * The signature provided in the "Sync-Signature" header is malformed * or missing. This response is provided with HTTP status code - * MHD_HTTP_BAD_REQUEST. + * #MHD_HTTP_BAD_REQUEST. */ TALER_EC_SYNC_BAD_SYNC_SIGNATURE = 6005, /** * The signature provided in the "Sync-Signature" header does not * match the account, old or new Etags. This response is provided with - * HTTP status code MHD_HTTP_FORBIDDEN. + * HTTP status code #MHD_HTTP_FORBIDDEN. */ TALER_EC_SYNC_INVALID_SIGNATURE = 6007, /** * The "Content-length" field for the upload is either not a number, * or too big, or missing. This response is provided with HTTP status - * code MHD_HTTP_BAD_REQUEST. + * code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_SYNC_BAD_CONTENT_LENGTH = 6008, /** * The "Content-length" field for the upload is too big based on the * server's terms of service. This response is provided with HTTP - * status code MHD_HTTP_PAYLOAD_TOO_LARGE. + * status code #MHD_HTTP_PAYLOAD_TOO_LARGE. */ TALER_EC_SYNC_EXCESSIVE_CONTENT_LENGTH = 6009, /** * The server is out of memory to handle the upload. Trying again * later may succeed. This response is provided with HTTP status code - * MHD_HTTP_PAYLOAD_TOO_LARGE. + * #MHD_HTTP_PAYLOAD_TOO_LARGE. */ TALER_EC_SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH = 6010, /** * The uploaded data does not match the Etag. This response is - * provided with HTTP status code MHD_HTTP_BAD_REQUEST. + * provided with HTTP status code #MHD_HTTP_BAD_REQUEST. */ TALER_EC_SYNC_INVALID_UPLOAD = 6011, /** * We failed to check for existing upload data in the database. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_DATABASE_FETCH_ERROR = 6012, /** * HTTP server was being shutdown while this operation was pending. * This response is provided with HTTP status code - * MHD_HTTP_SERVICE_UNAVAILABLE. + * #MHD_HTTP_SERVICE_UNAVAILABLE. */ TALER_EC_SYNC_SHUTDOWN = 6013, /** * HTTP server experienced a timeout while awaiting promised payment. * This response is provided with HTTP status code - * MHD_HTTP_REQUEST_TIMEOUT. + * #MHD_HTTP_REQUEST_TIMEOUT. */ TALER_EC_SYNC_PAYMENT_TIMEOUT = 6014, /** * Sync could not store order data in its own database. This response - * is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + * is provided with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_PAYMENT_CREATE_DB_ERROR = 6015, /** * Sync could not store payment confirmation in its own database. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_PAYMENT_CONFIRM_DB_ERROR = 6016, /** * Sync could not fetch information about possible existing orders * from its own database. This response is provided with HTTP status - * code MHD_HTTP_INTERNAL_SERVER_ERROR. + * code #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_PAYMENT_CHECK_ORDER_DB_ERROR = 6017, /** * Sync could not setup the payment request with its own backend. This * response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. + * #MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR = 6018, /** * The sync service failed find the backup to be updated in its * database. This response is provided with HTTP status code - * MHD_HTTP_NOT_FOUND. + * #MHD_HTTP_NOT_FOUND. */ TALER_EC_SYNC_PREVIOUS_BACKUP_UNKNOWN = 6019, diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index c058f96d0..db74b156b 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1297,7 +1297,7 @@ keys_completed_cb (void *cls, for (unsigned int i = 0; ilink_cb); diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c index 0fdbf7c69..f15a35ff4 100644 --- a/src/lib/exchange_api_refreshes_reveal.c +++ b/src/lib/exchange_api_refreshes_reveal.c @@ -222,7 +222,7 @@ handle_refresh_reveal_finished (void *cls, if (GNUNET_OK != ret) { response_code = 0; - ec = TALER_EC_REFRESH_REVEAL_REPLY_MALFORMED; + ec = TALER_EC_REVEAL_REPLY_MALFORMED; } else { diff --git a/src/lib/exchange_api_transfers_get.c b/src/lib/exchange_api_transfers_get.c index 617c897d3..d3513fb81 100644 --- a/src/lib/exchange_api_transfers_get.c +++ b/src/lib/exchange_api_transfers_get.c @@ -275,7 +275,7 @@ handle_transfers_get_finished (void *cls, j)) return; GNUNET_break_op (0); - ec = TALER_EC_TRACK_TRANSFER_REPLY_MALFORMED; + ec = TALER_EC_TRANSFERS_GET_REPLY_MALFORMED; response_code = 0; break; case MHD_HTTP_BAD_REQUEST: diff --git a/src/testing/testing_api_cmd_batch.c b/src/testing/testing_api_cmd_batch.c index 5de923f7f..74ff0247b 100644 --- a/src/testing/testing_api_cmd_batch.c +++ b/src/testing/testing_api_cmd_batch.c @@ -72,7 +72,7 @@ batch_run (void *cls, } bs->batch[bs->batch_ip].start_time = bs->batch[bs->batch_ip].last_req_time - = GNUNET_TIME_absolute_get (); + = GNUNET_TIME_absolute_get (); bs->batch[bs->batch_ip].num_tries = 1; bs->batch[bs->batch_ip].run (bs->batch[bs->batch_ip].cls, &bs->batch[bs->batch_ip], diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index 4e1399174..b4b1aaaad 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c @@ -274,7 +274,7 @@ interpreter_run (void *cls) cmd->label); cmd->start_time = cmd->last_req_time - = GNUNET_TIME_absolute_get (); + = GNUNET_TIME_absolute_get (); cmd->num_tries = 1; cmd->run (cmd->cls, cmd, -- cgit v1.2.3