Skip to content

Commit

Permalink
lib/curl/Easy: add SetProxyVerify{Host,Peer}()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 11, 2023
1 parent 815898c commit 604c649
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/curl/Easy.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ public:
SetOption(CURLOPT_SSL_VERIFYPEER, (long)value);
}

void SetProxyVerifyHost(bool value) {
SetOption(CURLOPT_PROXY_SSL_VERIFYHOST, value ? 2L : 0L);
}

void SetProxyVerifyPeer(bool value) {
SetOption(CURLOPT_PROXY_SSL_VERIFYPEER, value);
}

void SetConnectTimeout(long timeout) {
SetOption(CURLOPT_CONNECTTIMEOUT, timeout);
}
Expand Down

0 comments on commit 604c649

Please sign in to comment.