aboutsummaryrefslogtreecommitdiff
Kodi doesn't set the CAPATH and CAINFO parameters for libcurl. To make HTTPS
connections work we can set them based on SSL_CERT_DIR and SSL_CERT_FILE.

--- a/xbmc/filesystem/CurlFile.cpp
+++ b/xbmc/filesystem/CurlFile.cpp
@@ -626,8 +626,12 @@
   if (!m_cipherlist.empty())
     g_curlInterface.easy_setopt(h, CURLOPT_SSL_CIPHER_LIST, m_cipherlist.c_str());

+  // Load certificate data from environment paths
+  g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_CAPATH, getenv("SSL_CERT_DIR"));
+  g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_CAINFO, getenv("SSL_CERT_FILE"));
+
   if (CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_curlDisableHTTP2)
     g_curlInterface.easy_setopt(h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
   else
     // enable HTTP2 support. default: CURL_HTTP_VERSION_1_1. Curl >= 7.62.0 defaults to CURL_HTTP_VERSION_2TLS
     g_curlInterface.easy_setopt(h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
m?id=3adde30af52d4be347d610c0bdd543e0fdd6d64d'>gnu: Add sdkmanager....* gnu/packages/android.scm (sdkmanager): New variable. Co-authored-by: Andreas Enge <andreas@enge.fr> Distopico 2023-04-14Merge branch 'master' into core-updates....Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm Maxim Cournoyer 2023-03-21gnu: fdroidcl: Update to 0.7.0....* gnu/packages/android.scm (fdroidcl): Update to 0.7.0. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sergey Trofimov 2023-02-25gnu: Remove python-android-backup....The last release of the package dates from 2018. It depends on the cryptography library python-pycrypto, which has had its last release in 2013 and "is unmaintained, obsolete, and contains security vulnerabilities" according to its homepage. * gnu/packages/android.scm (python-android-backup): Delete variable. Andreas Enge 2023-02-25gnu: python-miio: Update to 0.5.12....* gnu/packages/android.scm (python-miio): Update to 0.5.12. [propagated-inputs]: Remove python-android-backup. Andreas Enge