Browse Source

Set curl to use the Windows cert store

(cherry picked from commit 3ede5f42be)
6.0.7
Marek Roszko 4 years ago
committed by Mark Roszko
parent
commit
e0b835fe20
  1. 5
      common/kicad_curl/kicad_curl_easy.cpp

5
common/kicad_curl/kicad_curl_easy.cpp

@ -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() );

Loading…
Cancel
Save