]> granicus.if.org Git - curl/commitdiff
lib582: do not verify host for SFTP
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 14 Nov 2017 18:11:59 +0000 (19:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Dec 2017 16:40:14 +0000 (17:40 +0100)
This SFTP test fails with libssh back-end due to failure to verify
the peer. Disable peer verification in the test as there seems to
be the intention of the test.

Note that the libssh back-end automatically verifies the peer's
host using the default known_hosts file.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
tests/libtest/lib582.c

index f55e5de71214d54a29ab1aba80974d87598424b8..2f9242a8592432856addbaa86d8c60fc3a941272 100644 (file)
@@ -284,6 +284,7 @@ int test(char *URL)
   easy_setopt(curl, CURLOPT_USERPWD, libtest_arg3);
   easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, "curl_client_key.pub");
   easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, "curl_client_key");
+  easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
 
   easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size);