| 715 | } |
| 716 | |
| 717 | static const char *md_config_set_min_delay(cmd_parms *cmd, void *dc, const char *value) |
| 718 | { |
| 719 | md_srv_conf_t *config = md_config_get(cmd->server); |
| 720 | const char *err = md_conf_check_location(cmd, MD_LOC_NOT_MD); |
| 721 | apr_time_t delay; |
| 722 | |
| 723 | (void)dc; |
| 724 | if (err) return err; |
| 725 | if (md_duration_parse(&delay, value, "s") != APR_SUCCESS) { |
| 726 | return "unrecognized duration format"; |
| 727 | } |
| 728 | if (delay <= 0) { |
| 729 | return "minimum delay must be greater than 0"; |
| 730 | } |
| 731 | config->mc->min_delay = delay; |
| 732 | return NULL; |
| 733 | } |
| 734 | |
| 735 | static const char *md_config_set_retry_failover(cmd_parms *cmd, void *dc, const char *value) |
| 736 | { |
nothing calls this directly
no test coverage detected