Home | History | Annotate | Download | only in sample

Lines Matching refs:hostname

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