From b38006d212e479bb2beb3a37d26786b3cb420baa Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 14 Oct 2010 15:00:24 +0200 Subject: [PATCH] Disable SSL certificate validation until we have CA certificate handling. Better than no encryption at all :) --- src/httphelper.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/httphelper.cpp b/src/httphelper.cpp index 474e79f..3f33def 100644 --- a/src/httphelper.cpp +++ b/src/httphelper.cpp @@ -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() ) { -- 1.7.1