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 /* $Id: auth.h 1305 2007-11-01 20:04:20Z benoitg $ */ 00027 #ifndef _AUTH_H_ 00028 #define _AUTH_H_ 00029 00030 #include "httpd.h" 00031 00038 typedef enum { 00039 AUTH_ERROR = -1, 00040 AUTH_DENIED = 0, 00041 AUTH_ALLOWED = 1, 00042 AUTH_VALIDATION = 5, 00043 AUTH_VALIDATION_FAILED = 6, 00044 AUTH_LOCKED = 254 00045 } t_authcode; 00046 00050 typedef struct _t_authresponse { 00051 t_authcode authcode; 00052 } t_authresponse; 00053 00054 00056 void authenticate_client(request *); 00057 00059 void thread_client_timeout_check(void *arg); 00060 00061 #endif