Home | History | Annotate | Download | only in lib

Lines Matching refs:hostname

47  * Match a hostname against a wildcard pattern.
66 static int hostmatch(char *hostname, char *pattern)
76 /* normalize pattern and hostname by stripping off trailing dots */
77 size_t len = strlen(hostname);
78 if(hostname[len-1]=='.')
79 hostname[len-1] = 0;
86 return strcasecompare(pattern, hostname) ?
89 /* detect IP address as hostname and fail the match if so */
90 if(Curl_inet_pton(AF_INET, hostname, &ignored) > 0)
93 if(Curl_inet_pton(AF_INET6, hostname, &si6.sin6_addr) > 0)
107 return strcasecompare(pattern, hostname) ?
110 hostname_label_end = strchr(hostname, '.');
116 label of the hostname is at least as large as the left-most label
118 if(hostname_label_end - hostname < pattern_label_end - pattern)
123 return strncasecompare(pattern, hostname, prefixlen) &&
129 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)
135 !hostname || !*hostname) /* sanity check */
140 hostp = strdup(hostname);