summaryrefslogtreecommitdiffstats
path: root/modules/lua
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-08-07 21:38:09 +0200
committerStefan Fritsch <sf@apache.org>2012-08-07 21:38:09 +0200
commit7393da88924bd46637a27a6602ef99a8c3676e39 (patch)
tree2263b059f357ff0768eda5ccb513e6b797de7d56 /modules/lua
parentmod_lua: Decline to serve a request if the script doesn't exist, instead of t... (diff)
downloadapache2-7393da88924bd46637a27a6602ef99a8c3676e39.tar.xz
apache2-7393da88924bd46637a27a6602ef99a8c3676e39.zip
There is only one global provider name space, therefore allow
LuaAuthzProvider only in global scope. Remove unnecessary server config field. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/mod_lua.c2
-rw-r--r--modules/lua/mod_lua.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c
index 5deb3fe2c5..23aaf1a774 100644
--- a/modules/lua/mod_lua.c
+++ b/modules/lua/mod_lua.c
@@ -1324,7 +1324,7 @@ static const char *register_authz_provider(cmd_parms *cmd, void *_cfg,
const char *function)
{
lua_authz_provider_spec *spec;
- const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE);
+ const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
if (err)
return err;
diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h
index 3e06d1fbec..c51c352399 100644
--- a/modules/lua/mod_lua.h
+++ b/modules/lua/mod_lua.h
@@ -138,8 +138,6 @@ typedef struct
/* value of the LuaRoot directive */
const char *root_path;
-
- apr_hash_t *authz_providers;
} ap_lua_server_cfg;
typedef struct