Home | History | Annotate | Download | only in sample

Lines Matching refs:hostname

156  * Match a hostname against a wildcard pattern.
164 static int hostmatch(const char *hostname, const char *pattern)
171 return Curl_raw_equal(pattern, hostname) ?
184 return Curl_raw_equal(pattern, hostname) ?
187 hostname_label_end = strchr(hostname, '.');
193 label of the hostname is at least as large as the left-most label
195 if(hostname_label_end - hostname < pattern_label_end - pattern)
200 return Curl_raw_nequal(pattern, hostname, prefixlen) &&
206 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)
209 !hostname || !*hostname) /* sanity check */
212 if(Curl_raw_equal(hostname, match_pattern)) /* trivial case */
215 if(hostmatch(hostname,match_pattern) == CURL_HOST_MATCH)