diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-29 00:55:32 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-29 00:55:32 +0100 |
commit | 8e0ce79999351889c5df8fc4641c0d7011657f2d (patch) | |
tree | 665d18c433ae2315cd6532219edbfc9cc2feff8e /common | |
parent | 6c8d27e54fbf16b452b080fa76363568bd1f0ea9 (diff) | |
download | eurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.tar.gz eurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.tar.xz eurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.zip |
Added context_type into eurephiaCTX struct. Database queries limited due to context type.
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/eurephia_context.h b/common/eurephia_context.h index 2cef639..d5e13b2 100644 --- a/common/eurephia_context.h +++ b/common/eurephia_context.h @@ -26,6 +26,11 @@ #include "eurephiadb_struct.h" +#define ECTX_NO_PRIVILEGES 0x1000 +#define ECTX_PLUGIN_AUTH 0x1001 +#define ECTX_ADMIN_CONSOLE 0x1002 +#define ECTX_ADMIN_WEB 0x1004 + // // main structure for the eurephia module context // - the same context structure is used for all OpenVPN sessions @@ -42,6 +47,7 @@ typedef struct { FILE *log; int loglevel; int fatal_error; + int context_type; } eurephiaCTX; #endif |