summaryrefslogtreecommitdiffstats
path: root/modules/aaa/mod_authz_core.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-06-17 00:44:36 +0200
committerStefan Fritsch <sf@apache.org>2012-06-17 00:44:36 +0200
commitcb0cf2cf8151b4999620773a1cda0570129cd094 (patch)
treefed28367d1dc246a73b5313b810129576115795f /modules/aaa/mod_authz_core.c
parentAdjust log message: Condition can be caused by configuration error (diff)
downloadapache2-cb0cf2cf8151b4999620773a1cda0570129cd094.tar.xz
apache2-cb0cf2cf8151b4999620773a1cda0570129cd094.zip
pass the provider name to parse_require_line as pool userdata
This allows a single C function to implement several authz providers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351016 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_authz_core.c')
-rw-r--r--modules/aaa/mod_authz_core.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/aaa/mod_authz_core.c b/modules/aaa/mod_authz_core.c
index dc116696ae..a5c628e8de 100644
--- a/modules/aaa/mod_authz_core.c
+++ b/modules/aaa/mod_authz_core.c
@@ -413,8 +413,14 @@ static const char *add_authz_provider(cmd_parms *cmd, void *config,
section->limited = cmd->limited;
if (section->provider->parse_require_line) {
- const char *err = section->provider->parse_require_line(cmd, args,
- &section->provider_parsed_args);
+ const char *err;
+ apr_pool_userdata_setn(section->provider_name,
+ AUTHZ_PROVIDER_NAME_NOTE,
+ apr_pool_cleanup_null,
+ cmd->temp_pool);
+ err = section->provider->parse_require_line(cmd, args,
+ &section->provider_parsed_args);
+
if (err)
return err;
}