From 6d87909523f8e385d5d7b4642b39ffefe51db26c Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 18 Apr 2017 19:09:32 +0200 Subject: [PATCH] fix download pic from ssl url Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f6482eb04260945b6d75a3cc62b25b1909adb989 Author: Jacek Jendrzej Date: 2017-04-18 (Tue, 18 Apr 2017) --- src/driver/pictureviewer/pictureviewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 8b22b68aa..f93779996 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -123,6 +123,7 @@ std::string CPictureViewer::DownloadImage(std::string url) curl_easy_setopt(ch, CURLOPT_URL, url.c_str()); curl_easy_setopt(ch, CURLOPT_CONNECTTIMEOUT, 3); curl_easy_setopt(ch, CURLOPT_TIMEOUT, 4); + curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L); CURLcode res = curl_easy_perform(ch); if (res != CURLE_OK){ printf("[%s] curl_easy_perform() failed:%s\n",__func__, curl_easy_strerror(res));