| 679 | } |
| 680 | |
| 681 | static 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 | |
| 699 | static const char *md_config_set_check_interval(cmd_parms *cmd, void *dc, const char *value) |
| 700 | { |
nothing calls this directly
no test coverage detected