Skip to content

Commit

Permalink
Enabled SSL certificate verification (#6894)
Browse files Browse the repository at this point in the history
#changelog #network
  • Loading branch information
michaellrowley committed Mar 15, 2022
1 parent b935d52 commit b4dacc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/openFrameworks/utils/ofURLFileLoader.cpp
Expand Up @@ -178,8 +178,8 @@ ofHttpResponse ofURLFileLoaderImpl::handleRequest(const ofHttpRequest & request)
std::unique_ptr<CURL, void(*)(CURL*)> curl =
std::unique_ptr<CURL, void(*)(CURL*)>(curl_easy_init(), curl_easy_cleanup);
curl_slist *headers = nullptr;
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, true);
curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, 2);
curl_easy_setopt(curl.get(), CURLOPT_URL, request.url.c_str());

// always follow redirections
Expand Down

0 comments on commit b4dacc8

Please sign in to comment.