diff options
author | Bill Stoddard <stoddard@apache.org> | 1999-08-30 17:21:32 +0200 |
---|---|---|
committer | Bill Stoddard <stoddard@apache.org> | 1999-08-30 17:21:32 +0200 |
commit | 180ebd8c591caf89e42627d4ba8148c7a9523955 (patch) | |
tree | ce7d500deb798062d2864a7d47044f18e257ef19 /modules | |
parent | Lost the Apache feather icon along the way. Adding it back in... (diff) | |
download | apache2-180ebd8c591caf89e42627d4ba8148c7a9523955.tar.xz apache2-180ebd8c591caf89e42627d4ba8148c7a9523955.zip |
Add couple of hooks to the APacheCore.def file. Port mod_auth_anon and mod_digest to
use the new hooks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aaa/mod_auth_anon.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/modules/aaa/mod_auth_anon.c b/modules/aaa/mod_auth_anon.c index c137a7b07b..191fd9e541 100644 --- a/modules/aaa/mod_auth_anon.c +++ b/modules/aaa/mod_auth_anon.c @@ -288,27 +288,20 @@ static int check_anon_access(request_rec *r) #endif return DECLINED; } - +static void register_hooks(void) +{ + ap_hook_check_user_id(anon_authenticate_basic_user,NULL,NULL,HOOK_MIDDLE); + ap_hook_auth_checker(check_anon_access,NULL,NULL,HOOK_MIDDLE); +} module MODULE_VAR_EXPORT anon_auth_module = { - STANDARD_MODULE_STUFF, - NULL, /* initializer */ - create_anon_auth_dir_config, /* dir config creater */ + STANDARD20_MODULE_STUFF, + create_anon_auth_dir_config,/* dir config creater */ NULL, /* dir merger ensure strictness */ NULL, /* server config */ NULL, /* merge server config */ anon_auth_cmds, /* command table */ NULL, /* handlers */ - NULL, /* filename translation */ - anon_authenticate_basic_user, /* check_user_id */ - check_anon_access, /* check auth */ - NULL, /* check access */ - NULL, /* type_checker */ - NULL, /* fixups */ - NULL, /* logger */ - NULL, /* header parser */ - NULL, /* child_init */ - NULL, /* child_exit */ - NULL /* post read-request */ + register_hooks /* register hooks */ }; |