modules_definition.h

Go to the documentation of this file.
00001 /*
00002  ** Copyright(C) 2005-2006 Eric Leblond <regit@inl.fr>
00003  ** INL http://www.inl.fr/
00004  **
00005  ** $Id: modules_definition.h 4847 2008-06-13 14:48:31Z regit $
00006  **
00007  ** This program is free software; you can redistribute it and/or modify
00008  ** it under the terms of the GNU General Public License as published by
00009  ** the Free Software Foundation, version 3 of the License.
00010  **
00011  ** This program is distributed in the hope that it will be useful,
00012  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  ** GNU General Public License for more details.
00015  **
00016  ** You should have received a copy of the GNU General Public License
00017  ** along with this program; if not, write to the Free Software
00018  ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef MODULES_DEFINITION_H
00022 #define MODULES_DEFINITION_H
00023 
00028 #include "modules.h"
00029 
00030 GMutex *modules_mutex;
00031 
00034 typedef gboolean init_module_from_conf_t(module_t * module);
00035 
00036 typedef int user_check_callback(const char *user, const char *pass,
00037                                 unsigned passlen, user_session_t *session, gpointer params);
00038 
00039 typedef GSList *get_user_groups_callback(const char *user,
00040                                          gpointer params);
00041 
00042 typedef uint32_t get_user_id_callback(const char *user, gpointer params);
00043 
00044 typedef GSList *acl_check_callback(connection_t * element,
00045                                    gpointer params);
00046 
00047 typedef void define_period_callback(GHashTable * periods, gpointer params);
00048 
00049 /* ip auth */
00050 typedef gchar *ip_auth_callback(tracking_t * header, gpointer params);
00051 
00052 typedef int user_logs_callback(void *element, tcp_state_t state,
00053                                gpointer params);
00054 typedef int user_session_logs_callback(user_session_t * element,
00055                                        session_state_t state,
00056                                        gpointer params);
00057 
00058 /* certificate stuff */
00059 
00060 typedef int certificate_check_callback(nussl_session *nussl,
00061                                        gpointer params);
00062 /* certificate to uid function */
00063 typedef gchar *certificate_to_uid_callback(nussl_session *nussl,
00064                                            gpointer params);
00065 
00066 typedef nu_error_t user_session_modify_callback(user_session_t * session,
00067                                                 gpointer params);
00068 
00069 typedef nu_error_t finalize_packet_callback(connection_t * session,
00070                                             gpointer params);
00071 
00072 typedef void auth_error_log_callback(user_session_t * session,
00073                                      nuauth_auth_error_t error,
00074                                      const char *message, gpointer params);
00075 
00078 #endif

Generated on Wed Jan 7 04:00:40 2009 for NuFW by  doxygen 1.4.7