mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
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
This commit is contained in:
@@ -1324,7 +1324,7 @@ static const char *register_authz_provider(cmd_parms *cmd, void *_cfg,
|
|||||||
const char *function)
|
const char *function)
|
||||||
{
|
{
|
||||||
lua_authz_provider_spec *spec;
|
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)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
@@ -138,8 +138,6 @@ typedef struct
|
|||||||
|
|
||||||
/* value of the LuaRoot directive */
|
/* value of the LuaRoot directive */
|
||||||
const char *root_path;
|
const char *root_path;
|
||||||
|
|
||||||
apr_hash_t *authz_providers;
|
|
||||||
} ap_lua_server_cfg;
|
} ap_lua_server_cfg;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
Reference in New Issue
Block a user