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

Function md_config_set_initial_delay

modules/md/mod_md_config.c:681–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681static const char *md_config_set_initial_delay(cmd_parms *cmd, void *dc, const char *value)
682{
683 md_srv_conf_t *config = md_config_get(cmd->server);
684 const char *err = md_conf_check_location(cmd, MD_LOC_NOT_MD);
685 apr_time_t delay;
686
687 (void)dc;
688 if (err) return err;
689 if (md_duration_parse(&delay, value, "s") != APR_SUCCESS) {
690 return "unrecognized duration format";
691 }
692 if (delay < 0) {
693 return "initial delay must not be negative";
694 }
695 config->mc->initial_delay = delay;
696 return NULL;
697}
698
699static const char *md_config_set_check_interval(cmd_parms *cmd, void *dc, const char *value)
700{

Callers

nothing calls this directly

Calls 3

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85
md_duration_parseFunction · 0.85

Tested by

no test coverage detected