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

Function md_conf_check_location

modules/md/mod_md_config.c:326–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324#define MD_LOC_NOT_MD (0x102)
325
326static const char *md_conf_check_location(cmd_parms *cmd, int flags)
327{
328 if (MD_LOC_GLOBAL == flags) {
329 return ap_check_cmd_context(cmd, GLOBAL_ONLY);
330 }
331 if (MD_LOC_NOT_MD == flags && inside_md_section(cmd)) {
332 return apr_pstrcat(cmd->pool, cmd->cmd->name, " is not allowed inside an '",
333 MD_CMD_MD_SECTION, "' context", NULL);
334 }
335 if (MD_LOC_MD == flags) {
336 return md_section_check(cmd);
337 }
338 else if ((MD_LOC_MD & flags) && inside_md_section(cmd)) {
339 return NULL;
340 }
341 return ap_check_cmd_context(cmd, NOT_IN_DIRECTORY|NOT_IN_LOCATION);
342}
343
344static const char *set_on_off(int *pvalue, const char *s, apr_pool_t *p)
345{

Callers 15

md_config_sec_startFunction · 0.85
md_config_set_namesFunction · 0.85
md_config_set_caFunction · 0.85
md_config_set_contactFunction · 0.85
md_config_set_ca_protoFunction · 0.85
md_config_set_agreementFunction · 0.85
md_config_set_renew_modeFunction · 0.85
md_config_set_profileFunction · 0.85
md_config_set_staplingFunction · 0.85

Calls 3

ap_check_cmd_contextFunction · 0.85
inside_md_sectionFunction · 0.85
md_section_checkFunction · 0.85

Tested by

no test coverage detected