diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index bad4991d..d581e262 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -204,8 +204,25 @@ TALER_MINT_reply_invalid_json (struct MHD_Connection *connection) } - - - +/** + * Send confirmation of deposit success to client. + * + * @param connection connection to the client + * @param deposit deposit request to confirm + * @return MHD result code + */ +int +TALER_MINT_reply_deposit_success (struct MHD_Connection *connection, + const struct Deposit *deposit) +{ + // FIXME: return more information here, + // including in particular a signature over + // the deposit data from the mint! + return TALER_MINT_reply_json_pack (connection, + MHD_HTTP_OK, + "{s:s}", + "status", + "DEPOSIT_OK"); +} /* end of taler-mint-httpd_responses.c */ |