summaryrefslogtreecommitdiff
path: root/cli-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-14 22:49:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-14 22:49:19 +0800
commit0cc5fd3b7bd9e89ed17ac54f59eb38b9f8b91cb1 (patch)
tree9010efba6bbf374f36ba99aa5c37a4ae0e1b20c6 /cli-kex.c
parentf73cecc014ca44a20880817b9f01a3449147776e (diff)
parent02fee72a636fb74d3b158cf42307fb2e5d90483d (diff)
downloaddropbear-0cc5fd3b7bd9e89ed17ac54f59eb38b9f8b91cb1.tar.gz
merge
Diffstat (limited to 'cli-kex.c')
-rw-r--r--cli-kex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli-kex.c b/cli-kex.c
index fd2e48e..3859109 100644
--- a/cli-kex.c
+++ b/cli-kex.c
@@ -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);