Sets the curl proxy ssl verify options to the values of the host configuration options
This fixes #1616
This commit is contained in:
parent
15ff7c4cad
commit
7ab0dfc8ce
@ -439,6 +439,8 @@ CurlInputStream::InitEasy()
|
|||||||
request->SetVerifyPeer(verify_peer);
|
request->SetVerifyPeer(verify_peer);
|
||||||
request->SetVerifyHost(verify_host);
|
request->SetVerifyHost(verify_host);
|
||||||
request->SetOption(CURLOPT_HTTPHEADER, request_headers.Get());
|
request->SetOption(CURLOPT_HTTPHEADER, request_headers.Get());
|
||||||
|
request->SetProxyVerifyPeer(verify_peer);
|
||||||
|
request->SetProxyVerifyHost(verify_host);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -123,6 +123,14 @@ public:
|
|||||||
easy.SetVerifyPeer(value);
|
easy.SetVerifyPeer(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetProxyVerifyHost(bool value) {
|
||||||
|
easy.SetOption(CURLOPT_PROXY_SSL_VERIFYHOST, value ? 2L : 0L);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetProxyVerifyPeer(bool value) {
|
||||||
|
easy.SetOption(CURLOPT_PROXY_SSL_VERIFYPEER, value);
|
||||||
|
}
|
||||||
|
|
||||||
void SetNoBody(bool value=true) {
|
void SetNoBody(bool value=true) {
|
||||||
easy.SetNoBody(value);
|
easy.SetNoBody(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user