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

Function authn_cache_precfg

modules/aaa/mod_authn_socache.c:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static int authn_cache_precfg(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptmp)
71{
72 apr_status_t rv = ap_mutex_register(pconf, authn_cache_id,
73 NULL, APR_LOCK_DEFAULT, 0);
74 if (rv != APR_SUCCESS) {
75 ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(01673)
76 "failed to register %s mutex", authn_cache_id);
77 return 500; /* An HTTP status would be a misnomer! */
78 }
79 socache_provider = ap_lookup_provider(AP_SOCACHE_PROVIDER_GROUP,
80 AP_SOCACHE_DEFAULT_PROVIDER,
81 AP_SOCACHE_PROVIDER_VERSION);
82 configured = 0;
83 return OK;
84}
85
86static int authn_cache_post_config(apr_pool_t *pconf, apr_pool_t *plog,
87 apr_pool_t *ptmp, server_rec *s)

Callers

nothing calls this directly

Calls 2

ap_mutex_registerFunction · 0.85
ap_lookup_providerFunction · 0.85

Tested by

no test coverage detected