Blame SOURCES/0042-curl-7.61.1-ssh-known-hosts.patch

0fa833
From 9ea407a0476d22cde575826c18b5aa56b57ac9b4 Mon Sep 17 00:00:00 2001
0fa833
From: =?UTF-8?q?Felix=20H=C3=A4dicke?= <felixhaedicke@web.de>
0fa833
Date: Wed, 23 Jan 2019 23:10:39 +0100
0fa833
Subject: [PATCH] setopt: enable CURLOPT_SSH_KNOWNHOSTS and
0fa833
 CURLOPT_SSH_KEYFUNCTION for libssh
0fa833
0fa833
CURLOPT_SSH_KNOWNHOSTS and CURLOPT_SSH_KEYFUNCTION are supported for
0fa833
libssh as well. So accepting these options only when compiling with
0fa833
libssh2 is wrong here.
0fa833
0fa833
Fixes #3493
0fa833
Closes #3494
0fa833
0fa833
Upstream-commit: 3cbf731d9ec7146f9f1a6ac0fbd9af7fe358f5bb
0fa833
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
0fa833
---
0fa833
 lib/setopt.c | 3 +--
0fa833
 1 file changed, 1 insertion(+), 2 deletions(-)
0fa833
0fa833
diff --git a/lib/setopt.c b/lib/setopt.c
0fa833
index b07ccfe..88a05ff 100644
0fa833
--- a/lib/setopt.c
0fa833
+++ b/lib/setopt.c
0fa833
@@ -2208,7 +2208,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option,
0fa833
     result = Curl_setstropt(&data->set.str[STRING_SSH_HOST_PUBLIC_KEY_MD5],
0fa833
                             va_arg(param, char *));
0fa833
     break;
0fa833
-#ifdef HAVE_LIBSSH2_KNOWNHOST_API
0fa833
+
0fa833
   case CURLOPT_SSH_KNOWNHOSTS:
0fa833
     /*
0fa833
      * Store the file name to read known hosts from.
0fa833
@@ -2229,7 +2229,6 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option,
0fa833
      */
0fa833
     data->set.ssh_keyfunc_userp = va_arg(param, void *);
0fa833
     break;
0fa833
-#endif /* HAVE_LIBSSH2_KNOWNHOST_API */
0fa833
 #endif /* USE_LIBSSH2 */
0fa833
 
0fa833
   case CURLOPT_HTTP_TRANSFER_DECODING:
0fa833
-- 
0fa833
2.34.1
0fa833