diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-09 00:34:11 +0100 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-09 00:34:11 +0100 |
| commit | e4bd72e98083987d26cd6570786fa30fb984ef57 (patch) | |
| tree | c32e810b6eb834d563dc1891939ba18d46f4dee9 /common/eurephia_admin_struct.h | |
| parent | 4dc615cff484c4c11b2ef5b848595d83a0118329 (diff) | |
Added eurephiaCERTINFO and eurephiaCERTLIST structs functions
New functions to simplify using these structs in the code. Extended
eurephiaUSERINFO to also have a eurephiaCERTLIST pointer, which can be
used to store all associated certificates to this user.
Diffstat (limited to 'common/eurephia_admin_struct.h')
| -rw-r--r-- | common/eurephia_admin_struct.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/common/eurephia_admin_struct.h b/common/eurephia_admin_struct.h index c4fe6b8..b52ce64 100644 --- a/common/eurephia_admin_struct.h +++ b/common/eurephia_admin_struct.h @@ -21,23 +21,6 @@ #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; - long int setnull_flags; - struct _eurephiaUSERINFO_s *next; -} eurephiaUSERINFO; - -typedef struct { - eurephiaUSERINFO *users; - int num_users; - int maxlen[]; -} eurephiaUSERLIST; - typedef struct _eurephiaCERTINFO_s { int depth; char *digest; @@ -51,11 +34,28 @@ typedef struct _eurephiaCERTINFO_s { } eurephiaCERTINFO; typedef struct { - eurephiaUSERINFO *certs; + 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; |
