From 476630841fe6e2068753ab6eebfb69859ee22893 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 1 May 2010 16:52:46 +0200 Subject: [PATCH] Match hashed [host]:port format knownhosts --- libssh/keyfiles.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 7be2d99e..af748046 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1618,6 +1618,9 @@ int ssh_is_server_known(ssh_session session) { if (match == 0) { match = match_hostname(host, tokens[0], strlen(tokens[0])); } + if (match == 0) { + match = match_hashed_host(session, hostport, tokens[0]); + } if (match) { /* We got a match. Now check the key type */ if (strcmp(session->current_crypto->server_pubkey_type, type) != 0) {