diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-01 00:34:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-01 00:34:04 +0100 |
commit | 65915731a93a3057bb1844187b1aa3b476c4bd42 (patch) | |
tree | bab0eec9509240da65a77ec0ecdc41000cc4e4be /src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c | |
parent | 862054f6f2e9a08ccc051343d0dacde992ea1611 (diff) | |
download | exchange-65915731a93a3057bb1844187b1aa3b476c4bd42.tar.gz exchange-65915731a93a3057bb1844187b1aa3b476c4bd42.tar.bz2 exchange-65915731a93a3057bb1844187b1aa3b476c4bd42.zip |
add dispatching logic for (most) of the new endpoints
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c index 8904b444d..e360c1a52 100644 --- a/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c +++ b/src/exchange/taler-exchange-httpd_management_auditors_AP_disable.c @@ -137,16 +137,16 @@ del_auditor (void *cls, MHD_RESULT TEH_handler_management_auditors_AP_disable ( struct MHD_Connection *connection, - const struct GNUNET_HashCode *h_denom_pub, + const struct TALER_AuditorPublicKeyP *auditor_pub, const json_t *root) { struct TALER_MasterSignatureP master_sig; - struct DelAuditorContext dac; + struct DelAuditorContext dac = { + .auditor_pub = *auditor_pub + }; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_fixed_auto ("master_sig", &master_sig), - GNUNET_JSON_spec_fixed_auto ("auditor_pub", - &dac.auditor_pub), TALER_JSON_spec_absolute_time ("validity_end", &dac.validity_end), GNUNET_JSON_spec_end () @@ -171,7 +171,7 @@ TEH_handler_management_auditors_AP_disable ( TALER_SIGNATURE_MASTER_DEL_AUDITOR), .purpose.size = htonl (sizeof (da)), .end_date = GNUNET_TIME_absolute_hton (dac.validity_end), - .auditor_pub = dac.auditor_pub + .auditor_pub = *auditor_pub }; if (GNUNET_OK != |