Add wxWebRequest::DisablePeerVerify()

This method allows insecure HTTPS connections when required
This commit is contained in:
Tobias Taschner
2021-01-19 12:04:36 +01:00
parent bf1b0716e0
commit 036b7f29a7
8 changed files with 78 additions and 0 deletions

View File

@@ -247,6 +247,9 @@ void wxWebRequestCURL::Start()
}
curl_easy_setopt(m_handle, CURLOPT_HTTPHEADER, m_headerList);
if ( IsPeerVerifyDisabled() )
curl_easy_setopt(m_handle, CURLOPT_SSL_VERIFYPEER, 0);
StartRequest();
}