Commit 7ab0dfc8 authored by jcorporation's avatar jcorporation Committed by Max Kellermann

Sets the curl proxy ssl verify options to the values of the host configuration options

This fixes #1616
parent 15ff7c4c
...@@ -439,6 +439,8 @@ CurlInputStream::InitEasy() ...@@ -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: ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment