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

Function md_config_set_activation_delay

modules/md/mod_md_config.c:1226–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224}
1225
1226static const char *md_config_set_activation_delay(cmd_parms *cmd, void *mconfig, const char *arg)
1227{
1228 md_srv_conf_t *sc = md_config_get(cmd->server);
1229 const char *err;
1230 apr_interval_time_t delay;
1231
1232 (void)mconfig;
1233 if ((err = md_conf_check_location(cmd, MD_LOC_NOT_MD))) {
1234 return err;
1235 }
1236 if (md_duration_parse(&delay, arg, "d") != APR_SUCCESS) {
1237 return "unrecognized duration format";
1238 }
1239 apr_table_set(sc->mc->env, MD_KEY_ACTIVATION_DELAY, md_duration_format(cmd->pool, delay));
1240 return NULL;
1241}
1242
1243static const char *md_config_set_ca_certs(cmd_parms *cmd, void *dc, const char *path)
1244{

Callers

nothing calls this directly

Calls 4

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85
md_duration_parseFunction · 0.85
md_duration_formatFunction · 0.85

Tested by

no test coverage detected