Lines Matching refs:hostlen
49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument
52 if(hostlen != patternlen) in pmatch()
54 return strncasecompare(hostname, pattern, hostlen); in pmatch()
82 size_t hostlen, in hostmatch() argument
91 DEBUGASSERT(hostlen); in hostmatch()
94 if(hostname[hostlen-1]=='.') in hostmatch()
95 hostlen--; in hostmatch()
100 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
111 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch()
113 const char *hostname_label_end = memchr(hostname, '.', hostlen); in hostmatch()
117 return pmatch(hostname_label_end, hostlen - skiphost, in hostmatch()
128 const char *hostname, size_t hostlen) in Curl_cert_hostcheck() argument
131 return hostmatch(hostname, hostlen, match, matchlen); in Curl_cert_hostcheck()