Lines Matching full:hostname
155 * Match a hostname against a wildcard pattern.
163 static int hostmatch(const char *hostname, const char *pattern) in hostmatch() argument
170 return Curl_raw_equal(pattern, hostname) ? in hostmatch()
183 return Curl_raw_equal(pattern, hostname) ? in hostmatch()
186 hostname_label_end = strchr(hostname, '.'); in hostmatch()
192 label of the hostname is at least as large as the left-most label in hostmatch()
194 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch()
199 return Curl_raw_nequal(pattern, hostname, prefixlen) && in hostmatch()
205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) in Curl_cert_hostcheck() argument
208 !hostname || !*hostname) /* sanity check */ in Curl_cert_hostcheck()
211 if(Curl_raw_equal(hostname, match_pattern)) /* trivial case */ in Curl_cert_hostcheck()
214 if(hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) in Curl_cert_hostcheck()