diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-09-16 08:40:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-09-16 12:36:12 +0200 |
commit | da2598f823e95020defd54c6fdf3c82331ef12b3 (patch) | |
tree | 86f8b1f9723dc45d94b58ec90eec52bf01275f4b /docs/libcurl | |
parent | 5b7aaefc07de0638f84cc9ef6c813123e7128cba (diff) | |
download | curl-da2598f823e95020defd54c6fdf3c82331ef12b3.tar.gz |
hsts: CURLSTS_FAIL from hsts read callback should fail transfer
... and have CURLE_ABORTED_BY_CALLBACK returned.
Extended test 1915 to verify.
Reported-by: Jonathan Cardoso
Fixes #7726
Closes #7729
Diffstat (limited to 'docs/libcurl')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_HSTSREADFUNCTION.3 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_HSTSREADFUNCTION.3 b/docs/libcurl/opts/CURLOPT_HSTSREADFUNCTION.3 index d5e6ea542..2ed167fd9 100644 --- a/docs/libcurl/opts/CURLOPT_HSTSREADFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_HSTSREADFUNCTION.3 @@ -46,7 +46,9 @@ might cause the name to not get accepted) The callback should return \fICURLSTS_OK\fP if it returns a name and is prepared to be called again (for another host) or \fICURLSTS_DONE\fP if it has -no entry to return. It can also return \fICURLSTS_FAIL\fP to signal error. +no entry to return. It can also return \fICURLSTS_FAIL\fP to signal +error. Returning \fICURLSTS_FAIL\fP will stop the transfer from being +performed and make \fICURLE_ABORTED_BY_CALLBACK\fP get returned. This option doesn't enable HSTS, you need to use \fICURLOPT_HSTS_CTRL(3)\fP to do that. |