diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2016-05-27 17:20:19 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2016-06-02 10:10:38 -0400 |
commit | 4ace67a824bb036c49ef2fdd7ae568c3b963c9e3 (patch) | |
tree | 714701b9293141cbf8b8a3c4699607724b141c58 /src/mod_auth_gssapi.c | |
parent | 65e1bfe101f8b0183fc1bea66800558d2682544a (diff) | |
download | mod_auth_gssapi-4ace67a824bb036c49ef2fdd7ae568c3b963c9e3.tar.gz mod_auth_gssapi-4ace67a824bb036c49ef2fdd7ae568c3b963c9e3.tar.xz mod_auth_gssapi-4ace67a824bb036c49ef2fdd7ae568c3b963c9e3.zip |
Do not use ap_hook_check_user_id on Apache 2.4
On Apache 2.4 this method is deprecated, use the recommended hook.
Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Close #84
Diffstat (limited to 'src/mod_auth_gssapi.c')
-rw-r--r-- | src/mod_auth_gssapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index d2b5d2b..b8583ea 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -1392,7 +1392,12 @@ static const command_rec mag_commands[] = { static void mag_register_hooks(apr_pool_t *p) { +#ifdef AP_AUTH_INTERNAL_PER_CONF + ap_hook_check_authn(mag_auth, NULL, NULL, APR_HOOK_MIDDLE, + AP_AUTH_INTERNAL_PER_CONF); +#else ap_hook_check_user_id(mag_auth, NULL, NULL, APR_HOOK_MIDDLE); +#endif ap_hook_post_config(mag_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_pre_connection(mag_pre_connection, NULL, NULL, APR_HOOK_MIDDLE); } |