From 375a47d5023c9eccf45d8142a0568824eb4ed7ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 1 Nov 2019 15:36:14 +0100 Subject: improve status codes returned in case of denomination key troubles --- src/exchange/taler-exchange-httpd_keystate.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd_keystate.h') diff --git a/src/exchange/taler-exchange-httpd_keystate.h b/src/exchange/taler-exchange-httpd_keystate.h index 7e2a659ef..708b043b5 100644 --- a/src/exchange/taler-exchange-httpd_keystate.h +++ b/src/exchange/taler-exchange-httpd_keystate.h @@ -129,6 +129,8 @@ enum TEH_KS_DenominationKeyUse * @param key_state state to look in * @param denom_pub_hash hash of denomination public key * @param use purpose for which the key is being located + * @param ec[out] set to the error code, in case the operation failed + * @param hc[out] set to the HTTP status code to use * @return the denomination key issue, * or NULL if denom_pub could not be found (or is not valid at this time for the given @a use) */ @@ -137,7 +139,9 @@ TEH_KS_denomination_key_lookup_by_hash (const struct TEH_KS_StateHandle *key_state, const struct GNUNET_HashCode *denom_pub_hash, - enum TEH_KS_DenominationKeyUse use); + enum TEH_KS_DenominationKeyUse use, + enum TALER_ErrorCode *ec, + unsigned int *hc); /** -- cgit v1.2.3