taler-merchant-httpd_private-get-instances-ID-kyc.h (2222B)
1 /* 2 This file is part of GNU Taler 3 (C) 2021 Taler Systems SA 4 5 GNU Taler is free software; you can redistribute it and/or modify 6 it under the terms of the GNU Affero General Public License as 7 published by the Free Software Foundation; either version 3, 8 or (at your option) any later version. 9 10 GNU Taler is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public 16 License along with TALER; see the file COPYING. If not, 17 see <http://www.gnu.org/licenses/> 18 */ 19 20 /** 21 * @file taler-merchant-httpd_private-get-instances-ID-kyc.h 22 * @brief implements GET /instances/$ID/kyc request handling 23 * @author Christian Grothoff 24 */ 25 #ifndef TALER_MERCHANT_HTTPD_PRIVATE_GET_INSTANCES_ID_KYC_H 26 #define TALER_MERCHANT_HTTPD_PRIVATE_GET_INSTANCES_ID_KYC_H 27 #include "taler-merchant-httpd.h" 28 29 30 /** 31 * Force all KYC contexts to be resumed as we are about 32 * to shut down MHD. 33 */ 34 void 35 TMH_force_kyc_resume (void); 36 37 38 /** 39 * Change the instance's kyc settings. 40 * This is the handler called using the instance's own kycentication. 41 * 42 * @param rh context of the handler 43 * @param connection the MHD connection to handle 44 * @param[in,out] hc context with further information about the request 45 * @return MHD result code 46 */ 47 MHD_RESULT 48 TMH_private_get_instances_ID_kyc (const struct TMH_RequestHandler *rh, 49 struct MHD_Connection *connection, 50 struct TMH_HandlerContext *hc); 51 52 53 /** 54 * Change the instance's kyc settings. 55 * This is the handler called using the default instance's kycentication. 56 * 57 * @param rh context of the handler 58 * @param connection the MHD connection to handle 59 * @param[in,out] hc context with further information about the request 60 * @return MHD result code 61 */ 62 MHD_RESULT 63 TMH_private_get_instances_default_ID_kyc (const struct TMH_RequestHandler *rh, 64 struct MHD_Connection *connection, 65 struct TMH_HandlerContext *hc); 66 67 #endif