Lines Matching refs:sts

100       struct stsentry *sts = Curl_node_elem(e);  in Curl_hsts_cleanup()  local
102 hsts_free(sts); in Curl_hsts_cleanup()
125 struct stsentry *sts = calloc(1, sizeof(struct stsentry)); in hsts_create() local
126 if(!sts) in hsts_create()
131 free(sts); in hsts_create()
135 sts->host = duphost; in hsts_create()
136 sts->expires = expires; in hsts_create()
137 sts->includeSubDomains = subdomains; in hsts_create()
138 Curl_llist_append(&h->list, sts, &sts->node); in hsts_create()
151 struct stsentry *sts; in Curl_hsts_parse() local
221 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
222 if(sts) { in Curl_hsts_parse()
223 Curl_node_remove(&sts->node); in Curl_hsts_parse()
224 hsts_free(sts); in Curl_hsts_parse()
236 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
237 if(sts) { in Curl_hsts_parse()
239 sts->expires = expires; in Curl_hsts_parse()
240 sts->includeSubDomains = subdomains; in Curl_hsts_parse()
272 struct stsentry *sts = Curl_node_elem(e); in Curl_hsts() local
275 if(sts->expires <= now) { in Curl_hsts()
277 Curl_node_remove(&sts->node); in Curl_hsts()
278 hsts_free(sts); in Curl_hsts()
281 ntail = strlen(sts->host); in Curl_hsts()
282 if((subdomain && sts->includeSubDomains) && (ntail < hlen)) { in Curl_hsts()
285 strncasecompare(&hostname[offs], sts->host, ntail) && in Curl_hsts()
288 bestsub = sts; in Curl_hsts()
293 if((hlen == ntail) && strncasecompare(hostname, sts->host, hlen)) in Curl_hsts()
294 return sts; in Curl_hsts()
305 struct stsentry *sts, in hsts_push() argument
313 e.name = (char *)sts->host; in hsts_push()
314 e.namelen = strlen(sts->host); in hsts_push()
315 e.includeSubDomains = sts->includeSubDomains; in hsts_push()
317 if(sts->expires != TIME_T_MAX) { in hsts_push()
318 result = Curl_gmtime((time_t)sts->expires, &stamp); in hsts_push()
338 static CURLcode hsts_out(struct stsentry *sts, FILE *fp) in hsts_out() argument
341 if(sts->expires != TIME_T_MAX) { in hsts_out()
342 CURLcode result = Curl_gmtime((time_t)sts->expires, &stamp); in hsts_out()
346 sts->includeSubDomains ? ".": "", sts->host, in hsts_out()
352 sts->includeSubDomains ? ".": "", sts->host, UNLIMITED); in hsts_out()
387 struct stsentry *sts = Curl_node_elem(e); in Curl_hsts_save() local
389 result = hsts_out(sts, out); in Curl_hsts_save()
408 struct stsentry *sts = Curl_node_elem(e); in Curl_hsts_save() local
411 result = hsts_push(data, &i, sts, &stop); in Curl_hsts_save()