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

Function inside_section

modules/md/mod_md_config.c:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static int inside_section(cmd_parms *cmd, const char *section) {
299 ap_directive_t *d;
300 for (d = cmd->directive->parent; d; d = d->parent) {
301 if (!apr_cstr_casecmp(d->directive, section)) {
302 return 1;
303 }
304 }
305 return 0;
306}
307
308static int inside_md_section(cmd_parms *cmd) {
309 return (inside_section(cmd, MD_CMD_MD_SECTION) || inside_section(cmd, MD_CMD_MD2_SECTION));

Callers 1

inside_md_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected