| 324 | #define MD_LOC_NOT_MD (0x102) |
| 325 | |
| 326 | static 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 | |
| 344 | static const char *set_on_off(int *pvalue, const char *s, apr_pool_t *p) |
| 345 | { |
no test coverage detected