Main Page | Data Structures | Directories | File List | Data Fields

src/auth.h

00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
00017  * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
00018  *                                                                  *
00019 \********************************************************************/
00020 
00021 /* $Header: /cvsroot/wifidog/wifidog/src/auth.h,v 1.8 2004/11/17 23:54:25 alexcv Exp $ */
00027 #ifndef _AUTH_H_
00028 #define _AUTH_H_
00029 
00036 typedef enum {
00037     AUTH_ERROR = -1, 
00038     AUTH_DENIED = 0, 
00039     AUTH_ALLOWED = 1, 
00040     AUTH_VALIDATION = 5, 
00041     AUTH_VALIDATION_FAILED = 6, 
00042     AUTH_LOCKED = 254 
00043 } t_authcode;
00044 
00048 typedef struct _t_authresponse {
00049     t_authcode authcode; 
00050 } t_authresponse;
00051 
00052 
00054 void authenticate_client(request *);
00055 
00057 void thread_client_timeout_check(void *arg);
00058 
00059 #endif

Generated on Sun Apr 3 20:04:45 2005 for WifiDog by  doxygen 1.4.1