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

Function md_dns_matches

modules/md/md_util.c:858–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858int md_dns_matches(const char *pattern, const char *domain)
859{
860 const char *s;
861
862 if (!apr_cstr_casecmp(pattern, domain)) return 1;
863 if (pattern[0] == '*' && pattern[1] == '.') {
864 s = strchr(domain, '.');
865 if (s && !apr_cstr_casecmp(pattern+1, s)) return 1;
866 }
867 return 0;
868}
869
870apr_array_header_t *md_dns_make_minimal(apr_pool_t *p, apr_array_header_t *domains)
871{

Callers 4

link_md_to_serversFunction · 0.85
md_dns_make_minimalFunction · 0.85
md_dns_domains_matchFunction · 0.85
md_is_wild_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected