mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-17 02:46:15 +01:00
Ardour HTTPS verify that peer isn't lying about the cert
https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html
This commit is contained in:
parent
f509a7e003
commit
c69dde96eb
1 changed files with 4 additions and 0 deletions
|
|
@ -168,6 +168,10 @@ HttpGet::HttpGet (bool p, bool ssl)
|
|||
if (ssl && ca_path) {
|
||||
curl_easy_setopt (_curl, CURLOPT_CAPATH, ca_path);
|
||||
}
|
||||
|
||||
if (ssl && (ca_info || ca_path)) {
|
||||
curl_easy_setopt (_curl, CURLOPT_SSL_VERIFYPEER, 1);
|
||||
}
|
||||
}
|
||||
|
||||
HttpGet::~HttpGet ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue