|
@@ -2531,6 +2531,14 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|
|
va_arg(param, char *));
|
|
|
break;
|
|
|
|
|
|
+ case CURLOPT_SSH_KNOWNHOSTS:
|
|
|
+ /*
|
|
|
+ * Store the file name to read known hosts from.
|
|
|
+ */
|
|
|
+ result = Curl_setstropt(&data->set.str[STRING_SSH_KNOWNHOSTS],
|
|
|
+ va_arg(param, char *));
|
|
|
+ break;
|
|
|
+#ifdef USE_LIBSSH2
|
|
|
case CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256:
|
|
|
/*
|
|
|
* Option to allow for the SHA256 of the host public key to be checked
|
|
@@ -2540,14 +2548,6 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|
|
va_arg(param, char *));
|
|
|
break;
|
|
|
|
|
|
- case CURLOPT_SSH_KNOWNHOSTS:
|
|
|
- /*
|
|
|
- * Store the file name to read known hosts from.
|
|
|
- */
|
|
|
- result = Curl_setstropt(&data->set.str[STRING_SSH_KNOWNHOSTS],
|
|
|
- va_arg(param, char *));
|
|
|
- break;
|
|
|
-#ifdef USE_LIBSSH2
|
|
|
case CURLOPT_SSH_HOSTKEYFUNCTION:
|
|
|
/* the callback to check the hostkey without the knownhost file */
|
|
|
data->set.ssh_hostkeyfunc = va_arg(param, curl_sshhostkeycallback);
|