MCPcopy Create free account
hub / github.com/apache/httpd / ap_setup_auth_internal

Function ap_setup_auth_internal

server/request.c:2141–2177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2139}
2140
2141AP_DECLARE(void) ap_setup_auth_internal(apr_pool_t *ptemp)
2142{
2143 int total_auth_hooks = 0;
2144 int total_auth_providers = 0;
2145
2146 auth_internal_per_conf = 0;
2147
2148 if (_hooks.link_access_checker) {
2149 total_auth_hooks += _hooks.link_access_checker->nelts;
2150 }
2151 if (_hooks.link_access_checker_ex) {
2152 total_auth_hooks += _hooks.link_access_checker_ex->nelts;
2153 }
2154 if (_hooks.link_check_user_id) {
2155 total_auth_hooks += _hooks.link_check_user_id->nelts;
2156 }
2157 if (_hooks.link_auth_checker) {
2158 total_auth_hooks += _hooks.link_auth_checker->nelts;
2159 }
2160
2161 if (total_auth_hooks > auth_internal_per_conf_hooks) {
2162 return;
2163 }
2164
2165 total_auth_providers +=
2166 ap_list_provider_names(ptemp, AUTHN_PROVIDER_GROUP,
2167 AUTHN_PROVIDER_VERSION)->nelts;
2168 total_auth_providers +=
2169 ap_list_provider_names(ptemp, AUTHZ_PROVIDER_GROUP,
2170 AUTHZ_PROVIDER_VERSION)->nelts;
2171
2172 if (total_auth_providers > auth_internal_per_conf_providers) {
2173 return;
2174 }
2175
2176 auth_internal_per_conf = 1;
2177}
2178
2179AP_DECLARE(apr_status_t) ap_register_auth_provider(apr_pool_t *pool,
2180 const char *provider_group,

Callers 2

core_post_configFunction · 0.85
http_request.hFile · 0.85

Calls 1

ap_list_provider_namesFunction · 0.85

Tested by

no test coverage detected