From 5d1b6d2475e26ec88234c5bd04aaeafb7b7777e1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 26 Nov 2020 19:36:08 +0100 Subject: [PATCH] Removed unnecessary certificate bundling on NetBSD. --- es-core/src/HttpReq.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/es-core/src/HttpReq.cpp b/es-core/src/HttpReq.cpp index e2615b2f1..6b698a65e 100644 --- a/es-core/src/HttpReq.cpp +++ b/es-core/src/HttpReq.cpp @@ -61,10 +61,7 @@ HttpReq::HttpReq(const std::string& url) : mStatus(REQ_IN_PROGRESS), mHandle(nul // Mozilla project). There is a possibility to use the OS provided Schannel certificates // but I haven't been able to get this to work and it also seems to be problematic on // older Windows versions. - // For NetBSD 9.1 there is something wrong with the bundled Mozilla certificates, - // requiring us to bundle our own certificates. Maybe this will be resolved in future - // NetBSD versions, in which case this code can be disabled. - #if defined(_WIN64) || defined(__NetBSD__) + #if defined(_WIN64) curl_easy_setopt(mHandle, CURLOPT_CAINFO, ResourceManager::getInstance()-> getResourcePath(":/certificates/curl-ca-bundle.crt").c_str()); #endif