gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12938 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r12938 - gnunet/src/transport
Date: Thu, 9 Sep 2010 12:47:33 +0200

Author: wachs
Date: 2010-09-09 12:47:33 +0200 (Thu, 09 Sep 2010)
New Revision: 12938

Modified:
   gnunet/src/transport/plugin_transport_http.c
Log:


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-09-09 09:53:06 UTC 
(rev 12937)
+++ gnunet/src/transport/plugin_transport_http.c        2010-09-09 10:47:33 UTC 
(rev 12938)
@@ -1728,6 +1728,11 @@
 #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);
         curl_easy_setopt(ps->recv_endpoint, CURLOPT_WRITEHEADER, ps);
@@ -1819,6 +1824,11 @@
 #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);
                curl_easy_setopt(ps->send_endpoint, CURLOPT_HEADERFUNCTION, 
&curl_put_header_cb);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]