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

Function md_config_set_renew_mode

modules/md/mod_md_config.c:571–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571static 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
598static const char *md_config_set_profile(cmd_parms *cmd, void *dc, const char *value)
599{

Callers

nothing calls this directly

Calls 2

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85

Tested by

no test coverage detected