diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-05-25 21:34:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-05-25 21:34:18 +0200 |
commit | 068068f40fc97f09525aaccf560a1be352abd159 (patch) | |
tree | b4331505e2c538d591a755352aaeee912d6cac6f /src/exchange/taler-exchange-httpd_responses.h | |
parent | 0d1ab614c06f60f79de75a0f2ec30c33a69820dd (diff) | |
download | exchange-068068f40fc97f09525aaccf560a1be352abd159.tar.gz exchange-068068f40fc97f09525aaccf560a1be352abd159.tar.bz2 exchange-068068f40fc97f09525aaccf560a1be352abd159.zip |
return signed error message with HTTP_GONE status if denomination is not currently valid for specified operation (#6889)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.h b/src/exchange/taler-exchange-httpd_responses.h index 7182629eb..d4acd2132 100644 --- a/src/exchange/taler-exchange-httpd_responses.h +++ b/src/exchange/taler-exchange-httpd_responses.h @@ -63,6 +63,26 @@ TEH_RESPONSE_reply_unknown_denom_pub_hash ( /** + * Send assertion that the given denomination key hash + * is not usable (typically expired) at this time. + * + * @param connection connection to the client + * @param dph denomination public key hash + * @param now timestamp to use + * @param ec error code to use + * @param name of the operation that is not allowed at this time + * @return MHD result code + */ +MHD_RESULT +TEH_RESPONSE_reply_expired_denom_pub_hash ( + struct MHD_Connection *connection, + const struct GNUNET_HashCode *dph, + struct GNUNET_TIME_Absolute now, + enum TALER_ErrorCode ec, + const char *oper); + + +/** * Send proof that a request is invalid to client because of * insufficient funds. This function will create a message with all * of the operations affecting the coin that demonstrate that the coin |