Home
last modified time | relevance | path

Searched refs:hsts (Results 1 – 25 of 34) sorted by relevance

12

/third_party/curl/lib/
Dhsts.h44 struct hsts { struct
50 struct hsts *Curl_hsts_init(void); argument
51 void Curl_hsts_cleanup(struct hsts **hp);
52 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname,
54 struct stsentry *Curl_hsts(struct hsts *h, const char *hostname,
56 CURLcode Curl_hsts_save(struct Curl_easy *data, struct hsts *h,
59 struct hsts *h, const char *file);
61 struct hsts *h);
Dhsts.c77 struct hsts *Curl_hsts_init(void) in Curl_hsts_init()
79 struct hsts *h = calloc(sizeof(struct hsts), 1); in Curl_hsts_init()
92 void Curl_hsts_cleanup(struct hsts **hp) in Curl_hsts_cleanup()
94 struct hsts *h = *hp; in Curl_hsts_cleanup()
114 static CURLcode hsts_create(struct hsts *h, in hsts_create()
143 CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname, in Curl_hsts_parse()
249 struct stsentry *Curl_hsts(struct hsts *h, const char *hostname, in Curl_hsts()
353 CURLcode Curl_hsts_save(struct Curl_easy *data, struct hsts *h, in Curl_hsts_save()
414 static CURLcode hsts_add(struct hsts *h, char *line) in hsts_add()
458 static CURLcode hsts_pull(struct Curl_easy *data, struct hsts *h) in hsts_pull()
[all …]
Dshare.c96 if(!share->hsts) { in curl_share_setopt()
97 share->hsts = Curl_hsts_init(); in curl_share_setopt()
98 if(!share->hsts) in curl_share_setopt()
160 if(share->hsts) { in curl_share_setopt()
161 Curl_hsts_cleanup(&share->hsts); in curl_share_setopt()
235 Curl_hsts_cleanup(&share->hsts); in curl_share_cleanup()
Dshare.h63 struct hsts *hsts; member
Dsetopt.c2304 if(data->share->hsts == data->hsts) in Curl_vsetopt()
2305 data->hsts = NULL; in Curl_vsetopt()
2345 if(data->share->hsts) { in Curl_vsetopt()
2347 Curl_hsts_cleanup(&data->hsts); in Curl_vsetopt()
2348 data->hsts = data->share->hsts; in Curl_vsetopt()
3085 if(!data->hsts) { in Curl_vsetopt()
3086 data->hsts = Curl_hsts_init(); in Curl_vsetopt()
3087 if(!data->hsts) in Curl_vsetopt()
3110 if(!data->share || !data->share->hsts) in Curl_vsetopt()
3112 Curl_hsts_cleanup(&data->hsts); in Curl_vsetopt()
[all …]
Deasy.c969 if(data->hsts) { in curl_easy_duphandle()
970 outcurl->hsts = Curl_hsts_init(); in curl_easy_duphandle()
971 if(!outcurl->hsts) in curl_easy_duphandle()
975 outcurl->hsts, outcurl->set.str[STRING_HSTS]); in curl_easy_duphandle()
976 (void)Curl_hsts_loadcb(outcurl, outcurl->hsts); in curl_easy_duphandle()
1027 Curl_hsts_cleanup(&outcurl->hsts); in curl_easy_duphandle()
DMakefile.inc161 hsts.c \
300 hsts.h \
Durldata.h1999 struct hsts *hsts; member
DMakefile.in226 hostip.c hostip4.c hostip6.c hostsyn.c hsts.c http.c http1.c \
263 hsts.h http.h http1.h http2.h http_aws_sigv4.h http_chunks.h \
308 libcurl_la-hostsyn.lo libcurl_la-hsts.lo libcurl_la-http.lo \
405 libcurlu_la-hostsyn.lo libcurlu_la-hsts.lo libcurlu_la-http.lo \
542 ./$(DEPDIR)/libcurl_la-hsts.Plo \
669 ./$(DEPDIR)/libcurlu_la-hsts.Plo \
1269 hsts.c \
1408 hsts.h \
1844 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-hsts.Plo@am__quote@ # am--include-marker
1974 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-hsts.Plo@am__quote@ # am--include-mark…
[all …]
Durl.c411 Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]); in Curl_close()
413 if(!data->share || !data->share->hsts) in Curl_close()
414 Curl_hsts_cleanup(&data->hsts); in Curl_close()
1842 if(data->hsts && strcasecompare("http", data->state.up.scheme)) {
1844 if(Curl_hsts(data->hsts, conn->host.name, TRUE)) {
/third_party/curl/tests/data/
Dtest44038 this.hsts.example "99991001 04:47:41"
42 HSTS with trailing-dot host name in URL but none in hsts file
45 -x http://%HOSTIP:%HTTPPORT http://this.hsts.example./%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -…
52 CONNECT this.hsts.example.:443 HTTP/1.1
53 Host: this.hsts.example.:443
66 https://this.hsts.example./%TESTNUMBER
Dtest49337 .hsts.example "99991001 04:47:41"
44 -x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w…
51 CONNECT this.hsts.example:443 HTTP/1.1
52 Host: this.hsts.example:443
65 https://this.hsts.example/%TESTNUMBER
Dtest44138 this.hsts.example. "99991001 04:47:41"
45 -x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w…
52 CONNECT this.hsts.example:443 HTTP/1.1
53 Host: this.hsts.example:443
66 https://this.hsts.example/%TESTNUMBER
Dtest166018 <file name="%LOGDIR/hsts%TESTNUMBER">
19 # Your HSTS cache. https://curl.se/docs/hsts.html
34 %LOGDIR/hsts%TESTNUMBER
75 <file name="%LOGDIR/hsts%TESTNUMBER.save" mode="text">
76 # Your HSTS cache. https://curl.se/docs/hsts.html
/third_party/curl/docs/cmdline-opts/
Dhsts.d3 Long: hsts
9 Example: --hsts cache.txt $URL
DMakefile.inc105 hsts.d \
/third_party/curl/docs/
DHSTS.md24 - `--hsts [filename]` - enable HSTS, use the file as HSTS cache. If filename
31 For each hsts entry:
Doptions-in-versions91 --hsts 7.74.0
/third_party/curl/tests/unit/
Dunit1660.c123 struct hsts *h = Curl_hsts_init();
/third_party/curl/docs/examples/
DMakefile.inc51 hsts-preload \
DMakefile.in148 hsts-preload$(EXEEXT) http-options$(EXEEXT) http-post$(EXEEXT) \
384 hsts_preload_SOURCES = hsts-preload.c
385 hsts_preload_OBJECTS = hsts-preload.$(OBJEXT)
960 ./$(DEPDIR)/headerapi.Po ./$(DEPDIR)/hsts-preload.Po \
1026 getredirect.c getreferrer.c headerapi.c hsts-preload.c \
1051 getredirect.c getreferrer.c headerapi.c hsts-preload.c \
1508 hsts-preload$(EXEEXT): $(hsts_preload_OBJECTS) $(hsts_preload_DEPENDENCIES) $(EXTRA_hsts_preload_DE…
1509 @rm -f hsts-preload$(EXEEXT)
1854 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hsts-preload.Po@am__quote@ # am--include-marker
2119 -rm -f ./$(DEPDIR)/hsts-preload.Po
[all …]
/third_party/curl/src/
Dtool_cfgable.h54 char *hsts; /* HSTS cache file name */ member
Dtool_cfgable.c56 Curl_safefree(config->hsts); in free_config_fields()
/third_party/curl/
Dconfigure.ac173 curl_hsts_msg="enabled (--disable-hsts)"
181 hsts="yes"
641 curl_hsts_msg="no (--enable-hsts)";
643 hsts="no"
4346 dnl switch on/off hsts
4349 AC_ARG_ENABLE(hsts, optenable
4350 AS_HELP_STRING([--enable-hsts],[Enable HSTS support])
4351 AS_HELP_STRING([--disable-hsts],[Disable HSTS support]),
4355 hsts="no"
4360 AC_MSG_RESULT($hsts)
[all …]
DBUILD.gn81 "lib/hsts.c",

12