| 1136 | |
| 1137 | |
| 1138 | static void register_hooks(apr_pool_t *p) |
| 1139 | { |
| 1140 | APR_REGISTER_OPTIONAL_FN(authz_some_auth_required); |
| 1141 | |
| 1142 | ap_hook_pre_config(authz_core_pre_config, NULL, NULL, APR_HOOK_MIDDLE); |
| 1143 | ap_hook_check_config(authz_core_check_config, NULL, NULL, APR_HOOK_MIDDLE); |
| 1144 | ap_hook_check_authz(authorize_user, NULL, NULL, APR_HOOK_LAST, |
| 1145 | AP_AUTH_INTERNAL_PER_CONF); |
| 1146 | ap_hook_check_access_ex(authorize_userless, NULL, NULL, APR_HOOK_LAST, |
| 1147 | AP_AUTH_INTERNAL_PER_CONF); |
| 1148 | |
| 1149 | ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "env", |
| 1150 | AUTHZ_PROVIDER_VERSION, |
| 1151 | &authz_env_provider, AP_AUTH_INTERNAL_PER_CONF); |
| 1152 | ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "all", |
| 1153 | AUTHZ_PROVIDER_VERSION, |
| 1154 | &authz_all_provider, AP_AUTH_INTERNAL_PER_CONF); |
| 1155 | ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "method", |
| 1156 | AUTHZ_PROVIDER_VERSION, |
| 1157 | &authz_method_provider, AP_AUTH_INTERNAL_PER_CONF); |
| 1158 | ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "expr", |
| 1159 | AUTHZ_PROVIDER_VERSION, |
| 1160 | &authz_expr_provider, AP_AUTH_INTERNAL_PER_CONF); |
| 1161 | } |
| 1162 | |
| 1163 | AP_DECLARE_MODULE(authz_core) = |
| 1164 | { |
nothing calls this directly
no test coverage detected