/* eurephia_admin_struct.h -- Structs used by the admin applications * * GPLv2 - Copyright (C) 2008 David Sommerseth * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; version 2 * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifndef EUREPHIA_ADMIN_STRUCT_H #define EUREPHIA_ADMIN_STRUCT_H typedef struct _eurephiaACCESSINFO_s { int accessprofile; char *fwprofile; char *access_descr; struct _eurephiaACCESSINFO_s *next; void *_head; } eurephiaACCESSINFO; typedef struct _eurephiaACCESSLIST_s { eurephiaACCESSINFO *profiles; int num_profiles; } eurephiaACCESSLIST; typedef struct _eurephiaCERTINFO_s { int info_available; int depth; char *digest; char *common_name; char *organisation; char *email; char *registered; int certid; eurephiaACCESSINFO *access; struct _eurephiaCERTINFO_s *next; } eurephiaCERTINFO; typedef struct { eurephiaCERTINFO *certs; int num_certs; int maxlen[]; } eurephiaCERTLIST; typedef struct _eurephiaUSERINFO_s { char *username; char *password; char *activated; char *deactivated; char *last_accessed; int uid; long int setnull_flags; eurephiaCERTLIST *certlist; struct _eurephiaUSERINFO_s *next; } eurephiaUSERINFO; typedef struct { eurephiaUSERINFO *users; int num_users; int maxlen[]; } eurephiaUSERLIST; typedef struct _eurephiaLOGENTRY_s { int id; char *data; int length; struct _eurephiaLOGENTRY_s *ref; struct _eurehpiaLOGENTRY_s *next; } eurephiaLOGENTRY; typedef struct { eurephiaLOGENTRY *data; eurephiaLOGENTRY *header; int maxlen_data; int maxlen_header; } eurephiaLOGLIST; #endif