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

Function md_common_name_count

modules/md/md_core.c:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66apr_size_t md_common_name_count(const md_t *md1, const md_t *md2)
67{
68 int i;
69 apr_size_t hits;
70
71 if (md1 == NULL || md1->domains == NULL
72 || md2 == NULL || md2->domains == NULL) {
73 return 0;
74 }
75
76 hits = 0;
77 for (i = 0; i < md1->domains->nelts; ++i) {
78 const char *name1 = APR_ARRAY_IDX(md1->domains, i, const char*);
79 if (md_contains(md2, name1, 0)) {
80 ++hits;
81 }
82 }
83 return hits;
84}
85
86int md_is_covered_by_alt_names(const md_t *md, const struct apr_array_header_t* alt_names)
87{

Callers 1

find_closest_matchFunction · 0.85

Calls 1

md_containsFunction · 0.85

Tested by

no test coverage detected