diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_context.h | 3 | ||||
-rw-r--r-- | common/eurephiadb_session_struct.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/common/eurephia_context.h b/common/eurephia_context.h index 74a9f85..15db44e 100644 --- a/common/eurephia_context.h +++ b/common/eurephia_context.h @@ -31,6 +31,8 @@ #define ECTX_ADMIN_CONSOLE 0x2001 #define ECTX_ADMIN_WEB 0x2002 +#define SIZE_PWDCACHE_SALT 2048 + // // main structure for the eurephia module context // - the same context structure is used for all OpenVPN sessions @@ -44,6 +46,7 @@ typedef struct { #else void *fwcfg; #endif + char *server_salt; FILE *log; int loglevel; int fatal_error; diff --git a/common/eurephiadb_session_struct.h b/common/eurephiadb_session_struct.h index d9e2998..cfee998 100644 --- a/common/eurephiadb_session_struct.h +++ b/common/eurephiadb_session_struct.h @@ -21,6 +21,8 @@ #ifndef EUREPHIADB_SESSION_STRUCT_H_ #define EUREPHIADB_SESSION_STRUCT_H_ +typedef enum { stAUTHENTICATION, stSESSION} sessionType; + #define SESSION_NEW 1 #define SESSION_EXISTING 2 #define SESSION_REGISTERED 3 @@ -36,6 +38,7 @@ typedef struct { char *sessionkey; int sessionstatus; + sessionType type; eurephiaVALUES *sessvals; } eurephiaSESSION; |