• Home
  • Raw
  • Download

Lines Matching refs:sts

99       struct stsentry *sts = e->ptr;  in Curl_hsts_cleanup()  local
101 hsts_free(sts); in Curl_hsts_cleanup()
119 struct stsentry *sts = hsts_entry(); in hsts_create() local
122 if(!sts) in hsts_create()
127 free(sts); in hsts_create()
136 sts->host = duphost; in hsts_create()
137 sts->expires = expires; in hsts_create()
138 sts->includeSubDomains = subdomains; in hsts_create()
139 Curl_llist_insert_next(&h->list, h->list.tail, sts, &sts->node); in hsts_create()
151 struct stsentry *sts; in Curl_hsts_parse() local
216 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
217 if(sts) { in Curl_hsts_parse()
218 Curl_llist_remove(&h->list, &sts->node, NULL); in Curl_hsts_parse()
219 hsts_free(sts); in Curl_hsts_parse()
231 sts = Curl_hsts(h, hostname, FALSE); in Curl_hsts_parse()
232 if(sts) { in Curl_hsts_parse()
234 sts->expires = expires; in Curl_hsts_parse()
235 sts->includeSubDomains = subdomains; in Curl_hsts_parse()
269 struct stsentry *sts = e->ptr; in Curl_hsts() local
271 if(sts->expires <= now) { in Curl_hsts()
273 Curl_llist_remove(&h->list, &sts->node, NULL); in Curl_hsts()
274 hsts_free(sts); in Curl_hsts()
277 if(subdomain && sts->includeSubDomains) { in Curl_hsts()
278 size_t ntail = strlen(sts->host); in Curl_hsts()
282 strncasecompare(&hostname[offs], sts->host, ntail)) in Curl_hsts()
283 return sts; in Curl_hsts()
286 if(strcasecompare(hostname, sts->host)) in Curl_hsts()
287 return sts; in Curl_hsts()
298 struct stsentry *sts, in hsts_push() argument
306 e.name = (char *)sts->host; in hsts_push()
307 e.namelen = strlen(sts->host); in hsts_push()
308 e.includeSubDomains = sts->includeSubDomains; in hsts_push()
310 if(sts->expires != TIME_T_MAX) { in hsts_push()
311 result = Curl_gmtime((time_t)sts->expires, &stamp); in hsts_push()
331 static CURLcode hsts_out(struct stsentry *sts, FILE *fp) in hsts_out() argument
334 if(sts->expires != TIME_T_MAX) { in hsts_out()
335 CURLcode result = Curl_gmtime((time_t)sts->expires, &stamp); in hsts_out()
339 sts->includeSubDomains ? ".": "", sts->host, in hsts_out()
345 sts->includeSubDomains ? ".": "", sts->host, UNLIMITED); in hsts_out()
380 struct stsentry *sts = e->ptr; in Curl_hsts_save() local
382 result = hsts_out(sts, out); in Curl_hsts_save()
401 struct stsentry *sts = e->ptr; in Curl_hsts_save() local
404 result = hsts_push(data, &i, sts, &stop); in Curl_hsts_save()