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

Function md_config_set_renew_window

modules/md/mod_md_config.c:827–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827static const char *md_config_set_renew_window(cmd_parms *cmd, void *dc, const char *value)
828{
829 md_srv_conf_t *config = md_config_get(cmd->server);
830 const char *err;
831
832 (void)dc;
833 if ((err = md_conf_check_location(cmd, MD_LOC_ALL))) {
834 return err;
835 }
836 err = md_timeslice_parse(&config->renew_window, cmd->pool, value, MD_TIME_LIFE_NORM);
837 if (!err && config->renew_window->norm
838 && (config->renew_window->len >= config->renew_window->norm)) {
839 err = "a length of 100% or more is not allowed.";
840 }
841 if (err) return apr_psprintf(cmd->pool, "MDRenewWindow %s", err);
842 return NULL;
843}
844
845static const char *md_config_set_warn_window(cmd_parms *cmd, void *dc, const char *value)
846{

Callers

nothing calls this directly

Calls 3

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85
md_timeslice_parseFunction · 0.85

Tested by

no test coverage detected