From 4ace67a824bb036c49ef2fdd7ae568c3b963c9e3 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Fri, 27 May 2016 17:20:19 +0200 Subject: 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 Reviewed-by: Simo Sorce Close #84 --- src/mod_auth_gssapi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } -- cgit