summaryrefslogtreecommitdiffstats
path: root/src/known_hosts.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-06-15 18:27:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-06-15 18:27:23 +0200
commitf684e76ab224869b1a4db07cd1256876f4a71bae (patch)
tree22c3f1ff5b0d8d078553cf6bd7f5d75026a6a479 /src/known_hosts.c
parent3ba44badb00f7315dbe30aee7f5b75568fd1b0b7 (diff)
parentc75581fb939e5be9ea51c1741e57b75626da03a3 (diff)
downloadlibssh-f684e76ab224869b1a4db07cd1256876f4a71bae.tar.gz
libssh-f684e76ab224869b1a4db07cd1256876f4a71bae.tar.xz
libssh-f684e76ab224869b1a4db07cd1256876f4a71bae.zip
Merge branch 'pki'
Diffstat (limited to 'src/known_hosts.c')
-rw-r--r--src/known_hosts.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/known_hosts.c b/src/known_hosts.c
index 7c935a8..7ec73de 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)