taler-merchant-httpd_get-private-kyc.h (2488B)
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 src/backend/taler-merchant-httpd_get-private-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 * Recheck pending KYC responses using an exchange whose cached keys changed. 40 * Must be called after the exchange cache has been updated. 41 * 42 * @param exchange_url exchange whose keys changed 43 */ 44 void 45 TMH_kyc_keys_changed (const char *exchange_url); 46 47 48 /** 49 * Change the instance's kyc settings. 50 * This is the handler called using the instance's own kycentication. 51 * 52 * @param rh context of the handler 53 * @param connection the MHD connection to handle 54 * @param[in,out] hc context with further information about the request 55 * @return MHD result code 56 */ 57 enum MHD_Result 58 TMH_private_get_instances_ID_kyc (const struct TMH_RequestHandler *rh, 59 struct MHD_Connection *connection, 60 struct TMH_HandlerContext *hc); 61 62 63 /** 64 * Change the instance's kyc settings. 65 * This is the handler called using the default instance's kycentication. 66 * 67 * @param rh context of the handler 68 * @param connection the MHD connection to handle 69 * @param[in,out] hc context with further information about the request 70 * @return MHD result code 71 */ 72 enum MHD_Result 73 TMH_private_get_instances_default_ID_kyc (const struct TMH_RequestHandler *rh, 74 struct MHD_Connection *connection, 75 struct TMH_HandlerContext *hc); 76 77 #endif