Browse Source

Temporary HTTPS workaround (to make it work) until a CA bundle or other options can be put in place.

Jay Sistar 10 years ago
parent
commit
25286b2da8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/Atomic/Web/WebRequest.cpp

+ 3 - 0
Source/Atomic/Web/WebRequest.cpp

@@ -307,6 +307,9 @@ void WebRequest::setup(asio::io_service *service, CURLM *curlm)
     curl_easy_setopt(is_->curl, CURLOPT_ERRORBUFFER, is_->error);
     is_->error[0] = '\0';
 
+    // This line will eventually go away with a CA bundle in place, or other TLS options.
+    curl_easy_setopt(is_->curl, CURLOPT_SSL_VERIFYPEER, FALSE);
+
     curl_easy_setopt(is_->curl, CURLOPT_URL, is_->url.CString());
 
     // All callbacks must look at is_->isAborted flag!