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

Function md_common_name

modules/md/md_core.c:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43const char *md_common_name(const md_t *md1, const md_t *md2)
44{
45 int i;
46
47 if (md1 == NULL || md1->domains == NULL
48 || md2 == NULL || md2->domains == NULL) {
49 return NULL;
50 }
51
52 for (i = 0; i < md1->domains->nelts; ++i) {
53 const char *name1 = APR_ARRAY_IDX(md1->domains, i, const char*);
54 if (md_contains(md2, name1, 0)) {
55 return name1;
56 }
57 }
58 return NULL;
59}
60
61int md_domains_overlap(const md_t *md1, const md_t *md2)
62{

Callers 4

merge_mds_with_confFunction · 0.85
md_domains_overlapFunction · 0.85
md_get_by_dns_overlapFunction · 0.85
find_overlapFunction · 0.85

Calls 1

md_containsFunction · 0.85

Tested by

no test coverage detected