diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-06-15 10:30:38 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-06-15 18:27:05 +0200 |
commit | 2be90be7409219efa3577ac97c56f47a4d664fd8 (patch) | |
tree | 3ca0060219f02119c8d3b5a71150cf80a13ab4fd /src | |
parent | bcec7eeddcd7fafdd5be5035c8010a34e01c775c (diff) | |
download | libssh-2be90be7409219efa3577ac97c56f47a4d664fd8.tar.gz libssh-2be90be7409219efa3577ac97c56f47a4d664fd8.tar.xz libssh-2be90be7409219efa3577ac97c56f47a4d664fd8.zip |
known_hosts: Added a log message for key type mismatch.
Diffstat (limited to 'src')
-rw-r--r-- | src/known_hosts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/known_hosts.c b/src/known_hosts.c index 7c935a83..7ec73de2 100644 --- a/src/known_hosts.c +++ b/src/known_hosts.c @@ -474,6 +474,12 @@ int ssh_is_server_known(ssh_session session) { if (match) { /* We got a match. Now check the key type */ if (strcmp(session->current_crypto->server_pubkey_type, type) != 0) { + ssh_log(session, + SSH_LOG_PACKET, + "ssh_is_server_known: server type [%s] doesn't match the " + "type [%s] in known_hosts file", + session->current_crypto->server_pubkey_type, + type); /* Different type. We don't override the known_changed error which is * more important */ if (ret != SSH_SERVER_KNOWN_CHANGED) |