mirror of
https://github.com/curl/curl.git
synced 2026-06-02 11:44:16 +03:00
libssh: map SSH_KNOWN_HOSTS_OTHER to CURLKHMATCH_MISMATCH
Host key type mismatch from libssh was incorrectly reported as missing, causing key callbacks to accept instead of reject. Reported by: Joshua Rogers (Aisle Research) Closes #21724
This commit is contained in:
parent
4102400028
commit
0b8dbbc63c
1 changed files with 2 additions and 0 deletions
|
|
@ -277,6 +277,8 @@ static int myssh_is_known(struct Curl_easy *data, struct ssh_conn *sshc)
|
|||
keymatch = CURLKHMATCH_OK;
|
||||
break;
|
||||
case SSH_KNOWN_HOSTS_OTHER:
|
||||
keymatch = CURLKHMATCH_MISMATCH;
|
||||
break;
|
||||
case SSH_KNOWN_HOSTS_NOT_FOUND:
|
||||
case SSH_KNOWN_HOSTS_UNKNOWN:
|
||||
case SSH_KNOWN_HOSTS_ERROR:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue