Set curl to use the Windows cert store

This commit is contained in:
Marek Roszko 2022-01-21 22:09:34 -05:00
parent ad831a8384
commit 3ede5f42be
1 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,11 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() :
// Only allow HTTP and HTTPS protocols
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;
wxString application( Pgm().App().GetAppName() );
wxString version( GetBuildVersion() );