mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
CURLOPT_SSH_KNOWNHOSTS.md: strongly recommend using this
Make setopt fail for SSH backends not supporting knownhosts or pub md5 Closes #16204
This commit is contained in:
parent
58674865fe
commit
3f7f180901
2 changed files with 11 additions and 5 deletions
|
|
@ -2425,6 +2425,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
*/
|
||||
return Curl_setstropt(&data->set.str[STRING_SSH_PRIVATE_KEY], ptr);
|
||||
|
||||
#if defined(USE_LIBSSH2) || defined(USE_LIBSSH)
|
||||
case CURLOPT_SSH_HOST_PUBLIC_KEY_MD5:
|
||||
/*
|
||||
* Option to allow for the MD5 of the host public key to be checked
|
||||
|
|
@ -2437,7 +2438,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
* Store the filename to read known hosts from.
|
||||
*/
|
||||
return Curl_setstropt(&data->set.str[STRING_SSH_KNOWNHOSTS], ptr);
|
||||
|
||||
#endif
|
||||
case CURLOPT_SSH_KEYDATA:
|
||||
/*
|
||||
* Custom client data to pass to the SSH keyfunc callback
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue