exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

taler-exchange-httpd_aml-attributes-get.h (1678B)


      1 /*
      2   This file is part of TALER
      3   Copyright (C) 2023 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_aml-attributes-get.h
     18  * @brief Handle /aml/$OFFICER_PUB/attributes/$H_PAYTO requests
     19  * @author Christian Grothoff
     20  */
     21 #ifndef TALER_EXCHANGE_HTTPD_AML_ATTRIBUTES_GET_H
     22 #define TALER_EXCHANGE_HTTPD_AML_ATTRIBUTES_GET_H
     23 
     24 #include <microhttpd.h>
     25 #include "taler-exchange-httpd.h"
     26 
     27 
     28 /**
     29  * Handle a GET "/aml/$OFFICER_PUB/attributes/$H_PAYTO" request.  Parses the request
     30  * details, checks the signatures and if appropriately authorized returns
     31  * the matching decisions.
     32  *
     33  * @param rc request context
     34  * @param officer_pub public key of the AML officer who made the request
     35  * @param args GET arguments (should be the state)
     36  * @return MHD result code
     37  */
     38 MHD_RESULT
     39 TEH_handler_aml_attributes_get (
     40   struct TEH_RequestContext *rc,
     41   const struct TALER_AmlOfficerPublicKeyP *officer_pub,
     42   const char *const args[]);
     43 
     44 
     45 /**
     46  * Stop async running attribute GET requests.
     47  */
     48 void
     49 TEH_handler_aml_attributes_get_cleanup (void);
     50 
     51 
     52 #endif