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

Function md_config_sec_add_members

modules/md/mod_md_config.c:442–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442static const char *md_config_sec_add_members(cmd_parms *cmd, void *dc,
443 int argc, char *const argv[])
444{
445 md_srv_conf_t *sc = md_config_get(cmd->server);
446 const char *err;
447 int i;
448
449 (void)dc;
450 if (NULL != (err = md_section_check(cmd))) {
451 if (argc == 1) {
452 /* only these values are allowed outside a section */
453 return set_transitive(&sc->transitive, argv[0]);
454 }
455 return err;
456 }
457
458 assert(sc->current);
459 for (i = 0; i < argc; ++i) {
460 if (NULL != set_transitive(&sc->transitive, argv[i])) {
461 add_domain_name(sc->current->domains, argv[i], cmd->pool);
462 }
463 }
464 return NULL;
465}
466
467static const char *md_config_set_names(cmd_parms *cmd, void *dc,
468 int argc, char *const argv[])

Callers

nothing calls this directly

Calls 4

md_config_getFunction · 0.85
md_section_checkFunction · 0.85
set_transitiveFunction · 0.85
add_domain_nameFunction · 0.85

Tested by

no test coverage detected