(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 9 Sep 2010 10:47:33 +0000 (10:47 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 9 Sep 2010 10:47:33 +0000 (10:47 +0000)
src/transport/plugin_transport_http.c

index 775b260c73b9a707dce45956fd8c9adf509cb269..26d0e5fdf76e422b92c7ee75959c0a3e5ad3ad75 100644 (file)
@@ -1727,6 +1727,11 @@ static ssize_t send_check_connections (void *cls, struct Session *ps)
         }
 #if DEBUG_CURL
         curl_easy_setopt(ps->recv_endpoint, CURLOPT_VERBOSE, 1L);
+#endif
+#if BUILD_HTTPS
+        curl_easy_setopt (ps->recv_endpoint, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
+               curl_easy_setopt(ps->recv_endpoint, CURLOPT_SSL_VERIFYPEER, 0);
+               curl_easy_setopt(ps->recv_endpoint, CURLOPT_SSL_VERIFYHOST, 0);
 #endif
         curl_easy_setopt(ps->recv_endpoint, CURLOPT_URL, ps->url);
         curl_easy_setopt(ps->recv_endpoint, CURLOPT_HEADERFUNCTION, &curl_get_header_cb);
@@ -1818,6 +1823,11 @@ static ssize_t send_check_connections (void *cls, struct Session *ps)
 
 #if DEBUG_CURL
                curl_easy_setopt(ps->send_endpoint, CURLOPT_VERBOSE, 1L);
+#endif
+#if BUILD_HTTPS
+        curl_easy_setopt (ps->send_endpoint, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
+               curl_easy_setopt(ps->send_endpoint, CURLOPT_SSL_VERIFYPEER, 0);
+               curl_easy_setopt(ps->send_endpoint, CURLOPT_SSL_VERIFYHOST, 0);
 #endif
                curl_easy_setopt(ps->send_endpoint, CURLOPT_URL, ps->url);
                curl_easy_setopt(ps->send_endpoint, CURLOPT_PUT, 1L);