mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
transfer: enhance secure check
Introduce `Curl_xfer_is_secure(data)` that returns TRUE for transfers that happen(ed) over a end-to-end secured connection, e.g. SSL. Add test1586 to verify behaviour for http: transfers via a https: proxy. Reported-by: lg_oled77c5pua on hackerone Closes #20951
This commit is contained in:
parent
f4c0590b1c
commit
adda11330b
6 changed files with 104 additions and 6 deletions
|
|
@ -143,4 +143,8 @@ bool Curl_xfer_recv_is_paused(struct Curl_easy *data);
|
|||
CURLcode Curl_xfer_pause_send(struct Curl_easy *data, bool enable);
|
||||
CURLcode Curl_xfer_pause_recv(struct Curl_easy *data, bool enable);
|
||||
|
||||
/* TRUE if the transfer is secure (e.g. TLS) from libcurl to the
|
||||
* URL's host. */
|
||||
bool Curl_xfer_is_secure(struct Curl_easy *data);
|
||||
|
||||
#endif /* HEADER_CURL_TRANSFER_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue