]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
There is only one global provider name space, therefore allow
authorStefan Fritsch <sf@apache.org>
Tue, 7 Aug 2012 19:38:09 +0000 (19:38 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 7 Aug 2012 19:38:09 +0000 (19:38 +0000)
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

modules/lua/mod_lua.c
modules/lua/mod_lua.h

index 5deb3fe2c5a788a463e302928659a409a5dfbdec..23aaf1a774bba5d068beaca806666ca89ab1b750 100644 (file)
@@ -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;
 
index 3e06d1fbeceb4b8f7cca484dd3582837265da30f..c51c352399f074dbe4e6c717dcf44625a5211390 100644 (file)
@@ -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