Lines Matching refs:hlen
115 size_t hlen; in hsts_create() local
119 hlen = strlen(hostname); in hsts_create()
120 if(hlen && (hostname[hlen - 1] == '.')) in hsts_create()
122 --hlen; in hsts_create()
123 if(hlen) { in hsts_create()
129 duphost = Curl_memdup0(hostname, hlen); in hsts_create()
260 size_t hlen = strlen(hostname); in Curl_hsts() local
265 if((hlen > MAX_HSTS_HOSTLEN) || !hlen) in Curl_hsts()
267 if(hostname[hlen-1] == '.') in Curl_hsts()
269 --hlen; in Curl_hsts()
282 if((subdomain && sts->includeSubDomains) && (ntail < hlen)) { in Curl_hsts()
283 size_t offs = hlen - ntail; in Curl_hsts()
293 if((hlen == ntail) && strncasecompare(hostname, sts->host, hlen)) in Curl_hsts()