From: Steve Brokenshire Date: Fri, 12 Jan 2018 23:40:08 +0000 (+0000) Subject: CardDAV: Set CURLOPT_SSL_VERIFYSTATUS to 0 when using certificate file X-Git-Tag: release-0.22~5 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=f61e0e5b738c51d4b4b7e329c1e31fb2a9b3e2c9;p=xestiaab%2F.git CardDAV: Set CURLOPT_SSL_VERIFYSTATUS to 0 when using certificate file --- 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); + } }