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

Function md_config_set_ocsp_renew_window

modules/md/mod_md_config.c:1193–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193static const char *md_config_set_ocsp_renew_window(cmd_parms *cmd, void *dc, const char *value)
1194{
1195 md_srv_conf_t *sc = md_config_get(cmd->server);
1196 const char *err;
1197
1198 (void)dc;
1199 if ((err = md_conf_check_location(cmd, MD_LOC_ALL))) {
1200 return err;
1201 }
1202 err = md_timeslice_parse(&sc->mc->ocsp_renew_window, cmd->pool, value, MD_TIME_LIFE_NORM);
1203 if (!err && sc->mc->ocsp_renew_window->norm
1204 && (sc->mc->ocsp_renew_window->len >= sc->mc->ocsp_renew_window->norm)) {
1205 err = "with a length of 100% or more is not allowed.";
1206 }
1207 if (err) return apr_psprintf(cmd->pool, "MDStaplingRenewWindow %s", err);
1208 return NULL;
1209}
1210
1211static const char *md_config_set_cert_check(cmd_parms *cmd, void *dc,
1212 const char *name, const char *url)

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