diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 22:49:19 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 22:49:19 +0800 |
commit | 0cc5fd3b7bd9e89ed17ac54f59eb38b9f8b91cb1 (patch) | |
tree | 9010efba6bbf374f36ba99aa5c37a4ae0e1b20c6 /cli-kex.c | |
parent | f73cecc014ca44a20880817b9f01a3449147776e (diff) | |
parent | 02fee72a636fb74d3b158cf42307fb2e5d90483d (diff) | |
download | dropbear-0cc5fd3b7bd9e89ed17ac54f59eb38b9f8b91cb1.tar.gz |
merge
Diffstat (limited to 'cli-kex.c')
-rw-r--r-- | cli-kex.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -227,6 +227,11 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) { buffer * line = NULL; int ret; + if (cli_opts.no_hostkey_check) { + fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost); + return; + } + hostsfile = open_known_hosts_file(&readonly); if (!hostsfile) { ask_to_confirm(keyblob, keybloblen); |