diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-01 16:52:46 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-01 16:52:46 +0200 |
commit | 65dc4f1186a20718046471d1d5339afff3ec7933 (patch) | |
tree | e2f5506243ce96a0d2340c41fa430213fa853d86 /libssh/keyfiles.c | |
parent | 6b320a00a02caacaa0ec05a15debc477ac11b91e (diff) | |
download | libssh-65dc4f1186a20718046471d1d5339afff3ec7933.tar.gz libssh-65dc4f1186a20718046471d1d5339afff3ec7933.tar.xz libssh-65dc4f1186a20718046471d1d5339afff3ec7933.zip |
Match hashed [host]:port format knownhosts
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 74ec7ad..6a687c5 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1642,6 +1642,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) { |