From f61e0e5b738c51d4b4b7e329c1e31fb2a9b3e2c9 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Fri, 12 Jan 2018 23:40:08 +0000 Subject: [PATCH] CardDAV: Set CURLOPT_SSL_VERIFYSTATUS to 0 when using certificate file --- source/carddav2/carddav2.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/carddav2/carddav2.cpp b/source/carddav2/carddav2.cpp index cdec0c5..dd70bab 100644 --- a/source/carddav2/carddav2.cpp +++ b/source/carddav2/carddav2.cpp @@ -1491,9 +1491,12 @@ void CardDAV2::SetupDefaultParametersSSL(bool DoAuthentication){ string CertificateFilename = GetAccountDir(ServerAccount, true); if (wxFile::Exists(CertificateFilename)){ - + curl_easy_setopt(ConnectionSession, CURLOPT_CAINFO, CertificateFilename.c_str()); + // Force CURLOPT_SSL_VERIFYSTATUS to 0. + curl_easy_setopt(ConnectionSession, CURLOPT_SSL_VERIFYSTATUS, 0L); + } } -- 2.39.5