Skip to content

Commit 9793de7

Browse files
committed
cURL path set relative in apothecary
1 parent 9e7f7bf commit 9793de7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

libs/openFrameworks/utils/ofURLFileLoader.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,6 @@ ofHttpResponse ofURLFileLoaderImpl::handleRequest(const ofHttpRequest & request)
317317
}
318318
}
319319
if(version->features & CURL_VERSION_SSL) {
320-
const std::string certPath = ofToDataPath(CERTIFICATE_FILE, true);
321-
if (ofFile::doesFileExist(certPath) && checkValidCertifcate(certPath)) {
322-
curl_easy_setopt(curl.get(), CURLOPT_CAINFO, certPath.c_str());
323-
}
324-
#ifndef TARGET_WIN32
325-
curl_easy_setopt(curl.get(), CURLOPT_CAPATH, ofToDataPath("./", true).c_str());
326-
#endif
327320
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
328321
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, 2L);
329322
}

0 commit comments

Comments
 (0)