taler-exchange-httpd_auditors.h (1508B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2020 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU Affero General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. 12 13 You should have received a copy of the GNU Affero General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file taler-exchange-httpd_auditors.h 18 * @brief Handlers for the /auditors/ endpoints 19 * @author Christian Grothoff 20 */ 21 #ifndef TALER_EXCHANGE_HTTPD_AUDITORS_H 22 #define TALER_EXCHANGE_HTTPD_AUDITORS_H 23 24 #include <gnunet/gnunet_util_lib.h> 25 #include <microhttpd.h> 26 #include "taler-exchange-httpd.h" 27 28 29 /** 30 * Handle a "/auditors/$AUDITOR_PUB/$H_DENOM_PUB" request. 31 * 32 * @param connection the MHD connection to handle 33 * @param root uploaded JSON data 34 * @param auditor_pub public key of the auditor 35 * @param h_denom_pub hash of the denomination public key 36 * @return MHD result code 37 */ 38 MHD_RESULT 39 TEH_handler_auditors ( 40 struct MHD_Connection *connection, 41 const struct TALER_AuditorPublicKeyP *auditor_pub, 42 const struct TALER_DenominationHashP *h_denom_pub, 43 const json_t *root); 44 45 46 #endif