From: Thomas Jarosch Date: Thu, 14 Oct 2010 13:00:24 +0000 (+0200) Subject: Disable SSL certificate validation until we have CA certificate handling. Better... X-Git-Tag: v1.1~43 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=b38006d212e479bb2beb3a37d26786b3cb420baa Disable SSL certificate validation until we have CA certificate handling. Better than no encryption at all :) --- 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() ) {