httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: test framework/mod_authany's check user id hook vs. mod_ssl's
Date Fri, 20 Mar 2009 14:44:13 GMT
On Thu, Mar 19, 2009 at 4:36 PM, Jeff Trawick <trawick@gmail.com> wrote:

assert(Whatever is done in mod_ssl, the <2.3 logic in mod_authany needs to
> ensure that its check user id hook runs after mod_ssl's.)
>
>
I'm going with this code in mod_authany for Apache 2.0/2.2 as soon as it
checks out okay on more trees:

+static void extra_hooks(apr_pool_t *p)
+{
+    static const char * const modssl_runs_before[] = {"mod_ssl.c", NULL};
+
+    ap_hook_check_user_id(authany_handler, modssl_runs_before, NULL,
+                          APR_HOOK_FIRST);
+    ap_hook_auth_checker(require_any_user, NULL, NULL, APR_HOOK_FIRST);
+}

Reversing the order of (modssl_runs_before, NULL) does show failure of
ssl/fakeauth and ssl/basicauth; the order in the code above works.

-- 
Born in Roswell... married an alien...

Mime
View raw message