diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 23:30:10 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 23:30:10 +0100 |
commit | 6a7535dc23e248d64a193fa79aaddea257674834 (patch) | |
tree | 9acc2cf8691b66c12bb3254090b13e432151347e /common | |
parent | 0c35035dc8ac5d099f53353938a66b33227d3342 (diff) | |
download | eurephia-6a7535dc23e248d64a193fa79aaddea257674834.tar.gz eurephia-6a7535dc23e248d64a193fa79aaddea257674834.tar.xz eurephia-6a7535dc23e248d64a193fa79aaddea257674834.zip |
Added drafts for structs needed for admin utils
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_admin_struct.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/common/eurephia_admin_struct.h b/common/eurephia_admin_struct.h new file mode 100644 index 0000000..5a13a1f --- /dev/null +++ b/common/eurephia_admin_struct.h @@ -0,0 +1,74 @@ +/* eurephia_admin_struct.h -- Structs used by the admin applications + * + * GPLv2 - Copyright (C) 2008 David Sommerseth <dazo@users.sourceforge.net> + * + * 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 _eurephiaUSERINFO_s { + char *username; + char *password; + char *activated; + char *deactivated; + char *last_accessed; + int uid; + struct _eurephiaUSERINFO_s *next; +} eurephiaUSERINFO; + +typedef struct { + eurephiaUSERINFO *users; + int num_users; + int maxlen[]; +} eurephiaUSERLIST; + +typedef struct _eurephiaCERTINFO_s { + int depth; + char *digest; + char *common_name; + char *organisation; + char *email; + char *registered; + int certid; + struct _eurephiaCERTINFO_s *next; + +} eurephiaCERTINFO; + +typedef struct { + eurephiaUSERINFO *certs; + int num_certs; + int maxlen[]; +} eurephiaCERTLIST; + + +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 |