aboutsummaryrefslogblamecommitdiffstats
path: root/testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch
blob: 578eaa7b96a5c921f4634be1ca805fb061fc2ae2 (plain) (tree)




















                                                                            
Author: Georg Oechsler
Subject: Fix no_verify_hostname option with recent versions of curl

Index: curlftpfs-0.9.2/ftpfs.c
===================================================================
--- curlftpfs-0.9.2.orig/ftpfs.c
+++ curlftpfs-0.9.2/ftpfs.c
@@ -1626,9 +1626,10 @@ static void set_common_curl_stuff(CURL*
   }
 
   if (ftpfs.no_verify_hostname) {
-    /* The default is 2 which verifies even the host string. This sets to 1
-     * which means verify the host but not the string. */
-    curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 1);
+    /* The default is 2 which verifies even the host string. This sets
+     * to 0 which means the connection succeeds regardless of the names
+     * in the certificate. */
+    curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 0);
   }
 
   curl_easy_setopt_or_die(easy, CURLOPT_INTERFACE, ftpfs.interface);