aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-27 15:16:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-27 15:16:18 +0000
commit3bacc8e2efa8271ad02802d2c1b580401eaa5bb3 (patch)
tree06d2640666cb6ae2c36987e32f647b97dff9e0d6 /src/transport/plugin_transport_http_client.c
parente7e99d8571ea6f90626a41fdea321e19d6426578 (diff)
downloadgnunet-3bacc8e2efa8271ad02802d2c1b580401eaa5bb3.tar.gz
gnunet-3bacc8e2efa8271ad02802d2c1b580401eaa5bb3.zip
(CURLOPT_SSL_VERIFYHOST, 1L) is not suported anymore, have to use 2L
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index e2aaaa9e1..73426e3b3 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -1249,8 +1249,8 @@ client_connect_get (struct Session *s)
1249 if (HTTP_OPTIONS_VERIFY_CERTIFICATE == 1249 if (HTTP_OPTIONS_VERIFY_CERTIFICATE ==
1250 (ntohl (s->addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE)) 1250 (ntohl (s->addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE))
1251 { 1251 {
1252 curl_easy_setopt (s->client_get, CURLOPT_SSL_VERIFYPEER, 1); 1252 curl_easy_setopt (s->client_get, CURLOPT_SSL_VERIFYPEER, 1L);
1253 curl_easy_setopt (s->client_get, CURLOPT_SSL_VERIFYHOST, 1); 1253 curl_easy_setopt (s->client_get, CURLOPT_SSL_VERIFYHOST, 2L);
1254 } 1254 }
1255 else 1255 else
1256 { 1256 {
@@ -1326,8 +1326,8 @@ client_connect_put (struct Session *s)
1326 if (HTTP_OPTIONS_VERIFY_CERTIFICATE == 1326 if (HTTP_OPTIONS_VERIFY_CERTIFICATE ==
1327 (ntohl (s->addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE)) 1327 (ntohl (s->addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE))
1328 { 1328 {
1329 curl_easy_setopt (s->client_put, CURLOPT_SSL_VERIFYPEER, 1); 1329 curl_easy_setopt (s->client_put, CURLOPT_SSL_VERIFYPEER, 1L);
1330 curl_easy_setopt (s->client_put, CURLOPT_SSL_VERIFYHOST, 1); 1330 curl_easy_setopt (s->client_put, CURLOPT_SSL_VERIFYHOST, 2L);
1331 } 1331 }
1332 else 1332 else
1333 { 1333 {