From 53a7140a0bcfc47a373e6392e38e498f9b091f18 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Jan 2015 13:38:57 +0100 Subject: move /refresh/reveal response generation to taler-mint-httpd_responses.c --- src/mint/taler-mint-httpd_responses.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/mint/taler-mint-httpd_responses.h') diff --git a/src/mint/taler-mint-httpd_responses.h b/src/mint/taler-mint-httpd_responses.h index ab771cb31..55ebc0ca9 100644 --- a/src/mint/taler-mint-httpd_responses.h +++ b/src/mint/taler-mint-httpd_responses.h @@ -177,7 +177,7 @@ TALER_MINT_reply_refresh_commit_success (struct MHD_Connection *connection, * Send a response for "/refresh/melt". * * @param connection the connection to send the response to - * @param db_conn the database connection to fetch values from + * @param session session data to generate reply from * @param session_pub the refresh session public key. * @return a MHD result code */ @@ -187,5 +187,19 @@ TALER_MINT_reply_refresh_melt_success (struct MHD_Connection *connection, const struct GNUNET_CRYPTO_EddsaPublicKey *session_pub); +/** + * Send a response for "/refresh/reveal". + * + * @param connection the connection to send the response to + * @param num_newcoins number of new coins for which we reveal data + * @param sigs array of @a num_newcoins signatures revealed + * @return a MHD result code + */ +int +TALER_MINT_reply_refresh_reveal_success (struct MHD_Connection *connection, + unsigned int num_newcoins, + const struct TALER_RSA_Signature *sigs); + + #endif -- cgit v1.2.3