From 3743d200ad6b9341c9cf782d2f27c5fe45de065a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 11 Dec 2020 23:10:32 +0100 Subject: misc clean ups --- src/exchange/taler-exchange-httpd.c | 5 +++-- src/exchange/taler-exchange-httpd_keys.c | 3 +-- src/exchange/taler-exchange-httpd_keys.h | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 9717c5eb2..0eb4de59a 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -32,6 +32,7 @@ #include "taler-exchange-httpd_deposit.h" #include "taler-exchange-httpd_deposits_get.h" #include "taler-exchange-httpd_keystate.h" +#include "taler-exchange-httpd_keys.h" #include "taler-exchange-httpd_link.h" #include "taler-exchange-httpd_management.h" #include "taler-exchange-httpd_melt.h" @@ -672,8 +673,8 @@ handle_get_management (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return r404 (connection, "/management/*"); } - GNUNET_break (0); // not implemented - return MHD_NO; + return TEH_keys_management_get_handler (rh, + connection); } diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index 5accf6e15..88ab2e309 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -2121,8 +2121,7 @@ add_future_signkey_cb (void *cls, MHD_RESULT TEH_keys_management_get_handler (const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, - const char *const args[]) + struct MHD_Connection *connection) { struct KeyStateHandle *ksh; json_t *reply; diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h index e91b1e16c..5a1314f12 100644 --- a/src/exchange/taler-exchange-httpd_keys.h +++ b/src/exchange/taler-exchange-httpd_keys.h @@ -233,13 +233,11 @@ TEH_keys_get_handler (const struct TEH_RequestHandler *rh, * * @param rh context of the handler * @param connection the MHD connection to handle - * @param args array of additional options (must be empty for this function) * @return MHD result code */ MHD_RESULT TEH_keys_management_get_handler (const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, - const char *const args[]); + struct MHD_Connection *connection); /** -- cgit v1.2.3