From 2cfc4ed98347047249b8f7f91ad513a4b0b84e45 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 Nov 2020 23:17:01 +0100 Subject: hsts: add read/write callbacks - read/write callback options - man pages for the 4 new setopts - test 1915 verifies the callbacks Closes #5896 --- lib/easy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/easy.c') diff --git a/lib/easy.c b/lib/easy.c index ca1117a46..4dc094603 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -888,7 +888,9 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) if(!outcurl->hsts) goto fail; if(outcurl->set.str[STRING_HSTS]) - (void)Curl_hsts_load(outcurl->hsts, outcurl->set.str[STRING_HSTS]); + (void)Curl_hsts_loadfile(outcurl, + outcurl->hsts, outcurl->set.str[STRING_HSTS]); + (void)Curl_hsts_loadcb(outcurl, outcurl->hsts); } #endif /* Clone the resolver handle, if present, for the new handle */ -- cgit v1.2.1