From 4ad39b6b73a9dd2716855e08c67a905d02a1cf97 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Oct 2018 20:52:26 +0200 Subject: first skeleton of /deposit-confirmation API implementation; not yet complete, cannot work as-is, see FIXMEs --- src/include/taler_auditordb_plugin.h | 2 +- src/include/taler_error_codes.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h index 622ae1afa..752ff6a8d 100644 --- a/src/include/taler_auditordb_plugin.h +++ b/src/include/taler_auditordb_plugin.h @@ -245,7 +245,7 @@ struct TALER_AUDITORDB_DepositConfirmation /** * Public signing key from the exchange matching @e exchange_sig. */ - struct TALER_ExchangeSignatureP exchange_pub; + struct TALER_ExchangePublicKeyP exchange_pub; /** * Exchange master signature over @e exchange_sig. diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index 35dceb7c4..3c226e37e 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -1516,6 +1516,23 @@ enum TALER_ErrorCode */ TALER_EC_CHECK_PAYMENT_FAILED_COMPUTE_PROPOSAL_HASH = 2014, + + /* *********** Auditor error codes ********* */ + + /** + * The signature from the exchange on the deposit confirmation + * is invalid. Returned with a "400 Bad Request" status code. + */ + TALER_EC_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID = 2500, + + /** + * The auditor had trouble storing the deposit confirmation + * in its database. Returned with an HTTP status code of + * MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_DEPOSIT_CONFIRMATION_STORE_DB_ERROR = 2501, + + /* ********** /test API error codes ************* */ /** -- cgit v1.2.3