From f60ecdff15cf48316b24a73b500c7f9083bd10dc Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 11 Dec 2008 13:47:25 +0100 Subject: 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 --- common/eurephia_admin_common.c | 2 ++ common/eurephia_admin_struct.h | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'common') 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; -- cgit