Lines Matching refs:hostname
111 const char *hostname, in hsts_create() argument
117 DEBUGASSERT(hostname); in hsts_create()
119 hlen = strlen(hostname); in hsts_create()
120 if(hlen && (hostname[hlen - 1] == '.')) in hsts_create()
129 duphost = Curl_memdup0(hostname, hlen); in hsts_create()
143 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname, in Curl_hsts_parse() argument
154 if(Curl_host_is_ipnum(hostname)) in Curl_hsts_parse()
221 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
236 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
243 return hsts_create(h, hostname, subdomains, expires); in Curl_hsts_parse()
254 struct stsentry *Curl_hsts(struct hsts *h, const char *hostname, in Curl_hsts() argument
260 size_t hlen = strlen(hostname); in Curl_hsts()
267 if(hostname[hlen-1] == '.') in Curl_hsts()
284 if((hostname[offs-1] == '.') && in Curl_hsts()
285 strncasecompare(&hostname[offs], sts->host, ntail) && in Curl_hsts()
293 if((hlen == ntail) && strncasecompare(hostname, sts->host, hlen)) in Curl_hsts()