Set curl to use the Windows cert store

(cherry picked from commit 3ede5f42be)
This commit is contained in:
Marek Roszko 2022-01-21 22:09:34 -05:00 committed by Mark Roszko
parent d6c4215a1f
commit e0b835fe20
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() : m_headers( nullptr )
// 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() );