diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-18 22:48:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-19 00:17:15 +0200 |
commit | 2d5b238beb4661721afddd3c76262837d13ee8c4 (patch) | |
tree | 9bab009c0e95d990612287bb141d565004e42c0d /src/exchange/taler-exchange-httpd_reserve.c | |
parent | 2ec1b055a0f574e3837f2fbbb38098db4eb65f6f (diff) | |
download | exchange-2d5b238beb4661721afddd3c76262837d13ee8c4.tar.gz exchange-2d5b238beb4661721afddd3c76262837d13ee8c4.tar.bz2 exchange-2d5b238beb4661721afddd3c76262837d13ee8c4.zip |
rework /reserve/history to address #5010
Diffstat (limited to 'src/exchange/taler-exchange-httpd_reserve.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserve.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserve.c b/src/exchange/taler-exchange-httpd_reserve.c index 78f8ff1d0..08c904c54 100644 --- a/src/exchange/taler-exchange-httpd_reserve.c +++ b/src/exchange/taler-exchange-httpd_reserve.c @@ -30,42 +30,6 @@ /** - * Handle a "/reserve/status" request. Parses the - * given "reserve_pub" argument (which should contain the - * EdDSA public key of a reserve) and then respond with the - * status of the reserve. - * - * @param rh context of the handler - * @param connection the MHD connection to handle - * @param[in,out] connection_cls the connection's closure (can be updated) - * @param upload_data upload data - * @param[in,out] upload_data_size number of bytes (left) in @a upload_data - * @return MHD result code - */ -int -TEH_RESERVE_handler_reserve_status (struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, - void **connection_cls, - const char *upload_data, - size_t *upload_data_size) -{ - struct TALER_ReservePublicKeyP reserve_pub; - int res; - - res = TEH_PARSE_mhd_request_arg_data (connection, - "reserve_pub", - &reserve_pub, - sizeof (struct TALER_ReservePublicKeyP)); - if (GNUNET_SYSERR == res) - return MHD_NO; /* internal error */ - if (GNUNET_NO == res) - return MHD_YES; /* parse error */ - return TEH_DB_execute_reserve_status (connection, - &reserve_pub); -} - - -/** * Handle a "/reserve/withdraw" request. Parses the "reserve_pub" * EdDSA key of the reserve and the requested "denom_pub" which * specifies the key/value of the coin to be withdrawn, and checks |