anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

anastasis_authorization_lib.h (1557B)


      1 /*
      2   This file is part of Anastasis
      3   Copyright (C) 2019, 2021 Anastasis SARL
      4 
      5   Anastasis 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   Anastasis 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   Anastasis; see the file COPYING.GPL.  If not, see <http://www.gnu.org/licenses/>
     15 */
     16 /**
     17  * @file include/anastasis_authorization_lib.h
     18  * @brief database plugin loader
     19  * @author Dominik Meister
     20  * @author Dennis Neufeld
     21  * @author Christian Grothoff
     22  */
     23 #ifndef ANASTASIS_AUTHORIZATION_LIB_H
     24 #define ANASTASIS_AUTHORIZATION_LIB_H
     25 
     26 #include "anastasis_authorization_plugin.h"
     27 
     28 /**
     29  * Load authorization plugin.
     30  *
     31  * @param method name of the method to load
     32  * @param db database handle to use
     33  * @param AH_cfg configuration to use
     34  * @return plugin handle on success
     35  */
     36 struct ANASTASIS_AuthorizationPlugin *
     37 ANASTASIS_authorization_plugin_load (
     38   const char *method,
     39   struct ANASTASIS_DatabasePlugin *db,
     40   const struct GNUNET_CONFIGURATION_Handle *AH_cfg);
     41 
     42 
     43 /**
     44  * Shutdown all loaded plugins.
     45  */
     46 void
     47 ANASTASIS_authorization_plugin_shutdown (void);
     48 
     49 #endif
     50 /* end of anastasis_authorization_lib.h */