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

Function md_config_post_config

modules/md/mod_md_config.c:1413–1433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411};
1412
1413apr_status_t md_config_post_config(server_rec *s, apr_pool_t *p)
1414{
1415 md_srv_conf_t *sc;
1416 md_mod_conf_t *mc;
1417
1418 sc = md_config_get(s);
1419 mc = sc->mc;
1420
1421 mc->hsts_header = NULL;
1422 if (mc->hsts_max_age > 0) {
1423 mc->hsts_header = apr_psprintf(p, "max-age=%d", mc->hsts_max_age);
1424 }
1425
1426#if AP_MODULE_MAGIC_AT_LEAST(20180906, 2)
1427 if (mc->base_dir == NULL) {
1428 mc->base_dir = ap_state_dir_relative(p, MD_DEFAULT_BASE_DIR);
1429 }
1430#endif
1431
1432 return APR_SUCCESS;
1433}
1434
1435static md_srv_conf_t *config_get_int(server_rec *s, apr_pool_t *p)
1436{

Callers 1

Calls 1

md_config_getFunction · 0.85

Tested by

no test coverage detected