| 569 | } |
| 570 | |
| 571 | static const char *md_config_set_renew_mode(cmd_parms *cmd, void *dc, const char *value) |
| 572 | { |
| 573 | md_srv_conf_t *config = md_config_get(cmd->server); |
| 574 | const char *err; |
| 575 | md_renew_mode_t renew_mode; |
| 576 | |
| 577 | (void)dc; |
| 578 | if (!apr_cstr_casecmp("auto", value) || !apr_cstr_casecmp("automatic", value)) { |
| 579 | renew_mode = MD_RENEW_AUTO; |
| 580 | } |
| 581 | else if (!apr_cstr_casecmp("always", value)) { |
| 582 | renew_mode = MD_RENEW_ALWAYS; |
| 583 | } |
| 584 | else if (!apr_cstr_casecmp("manual", value) || !apr_cstr_casecmp("stick", value)) { |
| 585 | renew_mode = MD_RENEW_MANUAL; |
| 586 | } |
| 587 | else { |
| 588 | return apr_pstrcat(cmd->pool, "unknown MDDriveMode ", value, NULL); |
| 589 | } |
| 590 | |
| 591 | if ((err = md_conf_check_location(cmd, MD_LOC_ALL))) { |
| 592 | return err; |
| 593 | } |
| 594 | config->renew_mode = renew_mode; |
| 595 | return NULL; |
| 596 | } |
| 597 | |
| 598 | static const char *md_config_set_profile(cmd_parms *cmd, void *dc, const char *value) |
| 599 | { |
nothing calls this directly
no test coverage detected