Lines Matching refs:hsts
34 #include "hsts.h"
78 struct hsts *Curl_hsts_init(void)
80 struct hsts *h = calloc(1, sizeof(struct hsts));
93 void Curl_hsts_cleanup(struct hsts **hp)
95 struct hsts *h = *hp;
115 static CURLcode hsts_create(struct hsts *h,
148 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname,
254 struct stsentry *Curl_hsts(struct hsts *h, const char *hostname,
334 * Write this single hsts entry to a single output line
358 CURLcode Curl_hsts_save(struct Curl_easy *data, struct hsts *h,
381 fputs("# Your HSTS cache. https://curl.se/docs/hsts.html\n"
419 static CURLcode hsts_add(struct hsts *h, char *line)
463 static CURLcode hsts_pull(struct Curl_easy *data, struct hsts *h)
505 * format is documented here: https://curl.se/docs/hsts.html
507 * This function only returns error on major problems that prevent hsts
511 static CURLcode hsts_load(struct hsts *h, const char *file)
517 /* we need a private copy of the file name so that the hsts cache file
554 struct hsts *h, const char *file)
564 CURLcode Curl_hsts_loadcb(struct Curl_easy *data, struct hsts *h)
578 (void)Curl_hsts_loadfile(data, data->hsts, l->data);