From 0abd0fef03ae0868a5172b361df5bfa7aeae3724 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 9 Sep 2010 10:47:33 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 775b260c7..26d0e5fdf 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -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); -- 2.25.1