@@ -98,10 +98,6 @@ static const char *order(cmd_parms *cmd, void *dv, const char *arg)
9898 access_compat_dir_conf * d = (access_compat_dir_conf * ) dv ;
9999 int i , o ;
100100
101- ap_log_error (APLOG_MARK , APLOG_INFO , 0 , cmd -> server ,
102- "The 'Order' directive has been deprecated. "
103- "Consider using '<SatisfyAll><SatisfyOne>' directives." );
104-
105101 if (!strcasecmp (arg , "allow,deny" ))
106102 o = ALLOW_THEN_DENY ;
107103 else if (!strcasecmp (arg , "deny,allow" ))
@@ -124,10 +120,6 @@ static const char *satisfy(cmd_parms *cmd, void *dv, const char *arg)
124120 int satisfy = SATISFY_NOSPEC ;
125121 int i ;
126122
127- ap_log_error (APLOG_MARK , APLOG_INFO , 0 , cmd -> server ,
128- "The 'Satisfy' directive has been deprecated. "
129- "Consider using '<SatisfyAll><SatisfyOne>' directives." );
130-
131123 if (!strcasecmp (arg , "all" )) {
132124 satisfy = SATISFY_ALL ;
133125 }
@@ -157,10 +149,6 @@ static const char *allow_cmd(cmd_parms *cmd, void *dv, const char *from,
157149 char msgbuf [120 ];
158150 apr_status_t rv ;
159151
160- ap_log_error (APLOG_MARK , APLOG_INFO , 0 , cmd -> server ,
161- "The 'Allow/Deny' directives have been deprecated. "
162- "Consider using one of the host providers in mod_authz_host." );
163-
164152 if (strcasecmp (from , "from" ))
165153 return "allow and deny must be followed by 'from'" ;
166154
@@ -307,7 +295,7 @@ static int find_allowdeny(request_rec *r, apr_array_header_t *a, int method)
307295 return 0 ;
308296}
309297
310- static int ap_satisfies (request_rec * r )
298+ static int access_compat_ap_satisfies (request_rec * r )
311299{
312300 access_compat_dir_conf * conf = (access_compat_dir_conf * )
313301 ap_get_module_config (r -> per_dir_config , & access_compat_module );
@@ -354,9 +342,9 @@ static int check_dir_access(request_rec *r)
354342 }
355343 else {
356344 apr_table_setn (r -> notes , AUTHZ_ACCESS_PASSED_NOTE , "N" );
357- /* If Satisfy is Any and authorization is required, then
345+ /* If Satisfy is not Any and authorization is required, then
358346 defer to the authorization stage */
359- if ((ap_satisfies (r ) = = SATISFY_ANY ) && ap_some_auth_required (r )) {
347+ if ((access_compat_ap_satisfies (r ) ! = SATISFY_ANY ) && ap_some_auth_required (r )) {
360348 ret = OK ;
361349 }
362350 }
@@ -373,7 +361,7 @@ static int check_dir_access(request_rec *r)
373361
374362static void register_hooks (apr_pool_t * p )
375363{
376- APR_REGISTER_OPTIONAL_FN (ap_satisfies );
364+ APR_REGISTER_OPTIONAL_FN (access_compat_ap_satisfies );
377365
378366 /* This can be access checker since we don't require r->user to be set. */
379367 ap_hook_access_checker (check_dir_access ,NULL ,NULL ,APR_HOOK_MIDDLE );
0 commit comments