Lines Matching refs:hostname
65 static int hostmatch(char *hostname, char *pattern) in hostmatch() argument
76 size_t len = strlen(hostname); in hostmatch()
77 if(hostname[len-1]=='.') in hostmatch()
78 hostname[len-1] = 0; in hostmatch()
85 return strcasecompare(pattern, hostname) ? in hostmatch()
89 if(Curl_inet_pton(AF_INET, hostname, &ignored) > 0) in hostmatch()
92 if(Curl_inet_pton(AF_INET6, hostname, &si6.sin6_addr) > 0) in hostmatch()
106 return strcasecompare(pattern, hostname) ? in hostmatch()
109 hostname_label_end = strchr(hostname, '.'); in hostmatch()
117 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch()
122 return strncasecompare(pattern, hostname, prefixlen) && in hostmatch()
128 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) in Curl_cert_hostcheck() argument
134 !hostname || !*hostname) /* sanity check */ in Curl_cert_hostcheck()
139 hostp = strdup(hostname); in Curl_cert_hostcheck()