aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-04-08 21:18:40 +0200
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-04-08 21:30:45 +0200
commit5a0d63072f378e13d16578b691e40c32c8db2c5d (patch)
treeebd66cf83031c0db9b2d70990487f193f44388ff /src
parent931a49e930f7ccb613d788ec8280a56efb575237 (diff)
httpd refresh: remove unused `melt_sig_json' and `commit_sig_json' fields
The new protocol has coin signatures in the melt_coins JSON structure. It also does not have a session public key, so the commit_sig is unnecessary.
Diffstat (limited to 'src')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index 151035c04..1c91ae3b0 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -348,8 +348,6 @@ free_commit_links (struct TALER_MINTDB_RefreshCommitLinkP **commit_link,
* @param connection the MHD connection to handle
* @param new_denoms array of denomination keys
* @param melt_coins array of coins to melt
- * @param melt_sig_json signature affirming the melt operation
- * @param commit_signature signature over the commit
* @param num_oldcoins number of coins that are being melted
* @param transfer_pubs #TALER_CNC_KAPPA-dimensional array of @a num_oldcoins transfer keys
* @param secret_encs #TALER_CNC_KAPPA-dimensional array of @a num_oldcoins secrets
@@ -362,8 +360,6 @@ static int
handle_refresh_melt_json (struct MHD_Connection *connection,
const json_t *new_denoms,
const json_t *melt_coins,
- const json_t *melt_sig_json,
- const json_t *commit_signature,
unsigned int num_oldcoins,
const json_t *transfer_pubs,
const json_t *secret_encs,
@@ -651,12 +647,10 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh,
json_t *root;
json_t *new_denoms;
json_t *melt_coins;
- json_t *melt_sig_json;
json_t *coin_evs;
json_t *link_encs;
json_t *transfer_pubs;
json_t *secret_encs;
- json_t *commit_sig_json;
unsigned int num_oldcoins;
unsigned int num_newcoins;
json_t *coin_detail;
@@ -664,12 +658,10 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh,
struct TMH_PARSE_FieldSpecification spec[] = {
TMH_PARSE_MEMBER_ARRAY ("new_denoms", &new_denoms),
TMH_PARSE_MEMBER_ARRAY ("melt_coins", &melt_coins),
- TMH_PARSE_MEMBER_ARRAY ("melt_signature", &melt_sig_json),
TMH_PARSE_MEMBER_ARRAY ("coin_evs", &coin_evs),
TMH_PARSE_MEMBER_ARRAY ("link_encs", &link_encs),
TMH_PARSE_MEMBER_ARRAY ("transfer_pubs", &transfer_pubs),
TMH_PARSE_MEMBER_ARRAY ("secret_encs", &secret_encs),
- TMH_PARSE_MEMBER_OBJECT ("commit_signature", &commit_sig_json),
TMH_PARSE_MEMBER_END
};
@@ -730,8 +722,6 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh,
res = handle_refresh_melt_json (connection,
new_denoms,
melt_coins,
- melt_sig_json,
- commit_sig_json,
num_oldcoins,
transfer_pubs,
secret_encs,