| 1191 | } |
| 1192 | |
| 1193 | static 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 | |
| 1211 | static const char *md_config_set_cert_check(cmd_parms *cmd, void *dc, |
| 1212 | const char *name, const char *url) |
nothing calls this directly
no test coverage detected