share: add sharing of HSTS cache among handles

Closes #10138
This commit is contained in:
Daniel Stenberg 2022-12-27 11:50:20 +01:00
parent 692c73707a
commit 076a2f6291
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
11 changed files with 109 additions and 11 deletions

View file

@ -1396,6 +1396,9 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
if(data->state.resolve)
result = Curl_loadhostpairs(data);
/* If there is a list of hsts files to read */
Curl_hsts_loadfiles(data);
if(!result) {
/* Allow data->set.use_port to set which port to use. This needs to be
* disabled for example when we follow Location: headers to URLs using