Disable SSL certificate validation until we have CA certificate handling. Better...
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 14 Oct 2010 13:00:24 +0000 (15:00 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 14 Oct 2010 13:00:24 +0000 (15:00 +0200)
src/httphelper.cpp

index 474e79f..3f33def 100644 (file)
@@ -193,6 +193,10 @@ CURL* HTTPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff)
         CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_WRITEDATA,&curl_writedata_buff);
     if ( CurlInitError == CURLE_OK)
         CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_USERAGENT,&user_agent);
+    if ( CurlInitError == CURLE_OK)
+        CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_SSL_VERIFYHOST,0);
+    if ( CurlInitError == CURLE_OK)
+        CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_SSL_VERIFYPEER,0);
 
     if ( !Proxy.empty() )
     {