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 /plugin | |
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 'plugin')
-rw-r--r-- | plugin/eurephia.c | 1 | ||||
-rw-r--r-- | plugin/firewall/eurephiafw.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c index 728ddd0..67bb682 100644 --- a/plugin/eurephia.c +++ b/plugin/eurephia.c @@ -148,6 +148,7 @@ eurephiaCTX *eurephiaInit(const char **argv) // Prepare a context area for eurephia-auth ctx = (eurephiaCTX *) malloc(sizeof(eurephiaCTX)+2); memset(ctx, 0, sizeof(eurephiaCTX)+2); + ctx->context_type = ECTX_PLUGIN_AUTH; // Open a log file if( logfile != NULL ) { diff --git a/plugin/firewall/eurephiafw.c b/plugin/firewall/eurephiafw.c index ae383cc..a253631 100644 --- a/plugin/firewall/eurephiafw.c +++ b/plugin/firewall/eurephiafw.c @@ -113,6 +113,7 @@ void eFW_StartFirewall(eurephiaCTX *ctx) { // Create a fake eurephia context, just for logging shadowctx = (eurephiaCTX *) malloc(sizeof(eurephiaCTX)+2); memset(shadowctx, 0, sizeof(eurephiaCTX)+2); + shadowctx->context_type = ECTX_NO_PRIVILEGES; shadowctx->loglevel = ctx->loglevel; shadowctx->log = ctx->log; (*ctx->fwcfg).thrdata.ctx = shadowctx; |