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

Function md_config_set_dns01_cmd

modules/md/mod_md_config.c:1084–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084static const char *md_config_set_dns01_cmd(cmd_parms *cmd, void *mconfig, const char *arg)
1085{
1086 md_srv_conf_t *sc = md_config_get(cmd->server);
1087 const char *err;
1088
1089 if ((err = md_conf_check_location(cmd, MD_LOC_ALL))) {
1090 return err;
1091 }
1092
1093 if (inside_md_section(cmd)) {
1094 sc->dns01_cmd = arg;
1095 } else {
1096 apr_table_set(sc->mc->env, MD_KEY_CMD_DNS01, arg);
1097 }
1098
1099 (void)mconfig;
1100 return NULL;
1101}
1102
1103static const char *md_config_set_dns01_version(cmd_parms *cmd, void *mconfig, const char *value)
1104{

Callers

nothing calls this directly

Calls 3

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85
inside_md_sectionFunction · 0.85

Tested by

no test coverage detected