diff options
Diffstat (limited to 'testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch')
-rw-r--r-- | testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch b/testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch new file mode 100644 index 0000000000..578eaa7b96 --- /dev/null +++ b/testing/curlftpfs/530-curlftpfs__no_verify_hostname.patch @@ -0,0 +1,21 @@ +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); |