Set curl to use the Windows cert store
(cherry picked from commit 3ede5f42be
)
This commit is contained in:
parent
d6c4215a1f
commit
e0b835fe20
|
@ -125,6 +125,11 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() : m_headers( nullptr )
|
||||||
// Only allow HTTP and HTTPS protocols
|
// Only allow HTTP and HTTPS protocols
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
|
curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
// We need to this to allow using the Windows Certificate store
|
||||||
|
curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA );
|
||||||
|
#endif
|
||||||
|
|
||||||
wxPlatformInfo platformInfo;
|
wxPlatformInfo platformInfo;
|
||||||
wxString application( Pgm().App().GetAppName() );
|
wxString application( Pgm().App().GetAppName() );
|
||||||
wxString version( GetBuildVersion() );
|
wxString version( GetBuildVersion() );
|
||||||
|
|
Loading…
Reference in New Issue