From f2b92022d8807d2a5baccb9d98002a31b0b797e6 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 8 Sep 2022 09:08:46 +0200 Subject: -simplify curl ssl detection --- src/gns/gnunet-gns-proxy.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/gns') diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 64e60b954..c1db1c61e 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1265,7 +1265,7 @@ curl_check_hdr (void *buffer, GNUNET_free (leho_host); } else if (0 == strcasecmp (MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN, - hdr_type)) + hdr_type)) { char *leho_host; @@ -1309,7 +1309,7 @@ curl_check_hdr (void *buffer, s5r->header_tail, header); } -cleanup: + cleanup: GNUNET_free (ndup); GNUNET_free (new_cookie_hdr); GNUNET_free (new_location); @@ -3801,6 +3801,14 @@ run (void *cls, GNUNET_SCHEDULER_shutdown (); return; } + if (CURLSSLSET_OK != curl_global_sslset (CURLSSLBACKEND_GNUTLS, + NULL, + NULL)) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "cURL does not support the GnuTLS backend\n"); + + } if (0 != curl_global_init (CURL_GLOBAL_WIN32)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -- cgit v1.2.3