diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-29 20:27:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-29 20:27:57 +0100 |
commit | a0a405939f9a79cc3eab5104b9b9871a8574d908 (patch) | |
tree | 2a77203de38dcec43ede2af74ffeb3153c2400cf /src/mint/taler-mint-httpd_responses.c | |
parent | fa7f190745327322ced27b506fd9e905c4e65b8c (diff) | |
download | exchange-a0a405939f9a79cc3eab5104b9b9871a8574d908.tar.xz |
remove dead mint.h includes
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index de0736bdc..2c46a3246 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -525,12 +525,14 @@ TALER_MINT_reply_withdraw_sign_success (struct MHD_Connection *connection, * @param connection the connection to send the response to * @param signature the client's signature over the melt request * @param session_pub the refresh session public key. + * @param kappa security parameter to use for cut and choose * @return a MHD result code */ int TALER_MINT_reply_refresh_melt_success (struct MHD_Connection *connection, const struct GNUNET_CRYPTO_EddsaSignature *signature, - const struct GNUNET_CRYPTO_EddsaPublicKey *session_pub) + const struct GNUNET_CRYPTO_EddsaPublicKey *session_pub, + unsigned int kappa) { int ret; struct RefreshMeltResponseSignatureBody body; @@ -541,13 +543,15 @@ TALER_MINT_reply_refresh_melt_success (struct MHD_Connection *connection, body.purpose.purpose = htonl (TALER_SIGNATURE_REFRESH_MELT_RESPONSE); body.melt_client_signature = *signature; body.session_key = *session_pub; + body.kappa = htonl (kappa); TALER_MINT_keys_sign (&body.purpose, &sig); sig_json = TALER_JSON_from_sig (&body.purpose, &sig); ret = TALER_MINT_reply_json_pack (connection, MHD_HTTP_OK, - "{s:o}", - "signature", sig_json); + "{s:o, s:i}", + "signature", sig_json, + "kappa", (int) kappa); json_decref (sig_json); return ret; } |