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

Function ssl_proxy_section_post_config

modules/ssl/ssl_engine_init.c:2359–2386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2357}
2358
2359int ssl_proxy_section_post_config(apr_pool_t *p, apr_pool_t *plog,
2360 apr_pool_t *ptemp, server_rec *s,
2361 ap_conf_vector_t *section_config)
2362{
2363 SSLDirConfigRec *sdc = ap_get_module_config(s->lookup_defaults,
2364 &ssl_module);
2365 SSLDirConfigRec *pdc = ap_get_module_config(section_config,
2366 &ssl_module);
2367 if (pdc) {
2368 pdc->proxy->sc = mySrvConfig(s);
2369 ssl_config_proxy_merge(p, sdc, pdc);
2370 if (pdc->proxy_enabled) {
2371 apr_status_t rv;
2372
2373 rv = ssl_init_proxy_ctx(s, p, ptemp, pdc->proxy);
2374 if (rv != APR_SUCCESS) {
2375 return !OK;
2376 }
2377
2378 rv = ssl_run_init_server(s, p, 1, pdc->proxy->ssl_ctx);
2379 if (rv != APR_SUCCESS) {
2380 return !OK;
2381 }
2382 }
2383 pdc->proxy_post_config = 1;
2384 }
2385 return OK;
2386}
2387
2388static apr_status_t ssl_init_ca_cert_path(server_rec *s,
2389 apr_pool_t *ptemp,

Callers

nothing calls this directly

Calls 3

ap_get_module_configFunction · 0.85
ssl_config_proxy_mergeFunction · 0.85
ssl_init_proxy_ctxFunction · 0.85

Tested by

no test coverage detected