Lines Matching refs:hostname
49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument
54 return strncasecompare(hostname, pattern, hostlen); in pmatch()
81 static bool hostmatch(const char *hostname, in hostmatch() argument
90 DEBUGASSERT(hostname); in hostmatch()
94 if(hostname[hostlen-1]=='.') in hostmatch()
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
103 else if(Curl_host_is_ipnum(hostname)) in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
113 const char *hostname_label_end = memchr(hostname, '.', hostlen); in hostmatch()
115 size_t skiphost = hostname_label_end - hostname; in hostmatch()
128 const char *hostname, size_t hostlen) in Curl_cert_hostcheck() argument
130 if(match && *match && hostname && *hostname) in Curl_cert_hostcheck()
131 return hostmatch(hostname, hostlen, match, matchlen); in Curl_cert_hostcheck()