diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-11 13:47:25 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-11 13:47:25 +0100 |
commit | f60ecdff15cf48316b24a73b500c7f9083bd10dc (patch) | |
tree | f0159c50c1cf852131c190cbf96b1e44eae8c688 /common | |
parent | 6e47264d50651f910788b63383b1b1546ab40aff (diff) | |
download | eurephia-f60ecdff15cf48316b24a73b500c7f9083bd10dc.tar.gz eurephia-f60ecdff15cf48316b24a73b500c7f9083bd10dc.tar.xz eurephia-f60ecdff15cf48316b24a73b500c7f9083bd10dc.zip |
Added another flag to eurephiaUSERINFO
The added account_flags are flags used to quickly identify the
account status.
Made also suret that all flags are not set when a new eurephiaUSERINFO
struct is initialised
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_admin_common.c | 2 | ||||
-rw-r--r-- | common/eurephia_admin_struct.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/common/eurephia_admin_common.c b/common/eurephia_admin_common.c index 72cf057..3661f11 100644 --- a/common/eurephia_admin_common.c +++ b/common/eurephia_admin_common.c @@ -46,6 +46,8 @@ eurephiaUSERINFO *eAdminPopulateUSERINFO(int uid, const char *uname, const char newrec->activated = strdup_nullsafe(activated); newrec->deactivated = strdup_nullsafe(deactivd); newrec->last_accessed = strdup_nullsafe(lastacc); + newrec->account_flags = 0; + newrec->setnull_flags = 0; newrec->next = NULL; return newrec; diff --git a/common/eurephia_admin_struct.h b/common/eurephia_admin_struct.h index 2bd4363..074604f 100644 --- a/common/eurephia_admin_struct.h +++ b/common/eurephia_admin_struct.h @@ -21,6 +21,11 @@ #ifndef EUREPHIA_ADMIN_STRUCT_H #define EUREPHIA_ADMIN_STRUCT_H +#define ACCFLAG_NEVERUSED 0x001 +#define ACCFLAG_OPENSESSION 0x002 +#define ACCFLAG_BLACKLISTED 0x004 +#define ACCFLAG_DEACTIVATED 0x008 + typedef struct _eurephiaACCESSINFO_s { int accessprofile; char *fwprofile; @@ -62,6 +67,7 @@ typedef struct _eurephiaUSERINFO_s { char *deactivated; char *last_accessed; int uid; + long int account_flags; long int setnull_flags; eurephiaCERTLIST *certlist; struct _eurephiaUSERINFO_s *next; |