2
0
Эх сурвалжийг харах

Made PolycodeDownloader work with SSL urls

Ivan Safrin 10 жил өмнө
parent
commit
9e53b5f483

+ 3 - 1
Modules/Contents/Curl/PolycodeDownloader.cpp

@@ -46,7 +46,9 @@ void PolycodeDownloader::runThread() {
 	curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, DownloaderCallback);
 	curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, DownloaderCallback);
 	curl_easy_setopt(curl, CURLOPT_WRITEDATA, this);
 	curl_easy_setopt(curl, CURLOPT_WRITEDATA, this);
 	curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
 	curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
-			
+    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
+    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
+    
 	CURLcode curl_res = curl_easy_perform(curl);
 	CURLcode curl_res = curl_easy_perform(curl);
 	
 	
 	curl_easy_cleanup(curl);	
 	curl_easy_cleanup(curl);