comparison cli-kex.c @ 772:7fc0aeada79c

-y -y to disable hostkey checking fix missing trailing space when passing arguments for multihop mode From Hans Harder
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 22:49:10 +0800
parents 005530560594
children a9f2a6ae4eb5
comparison
equal deleted inserted replaced
719:1b8b2b9d6e94 772:7fc0aeada79c
215 const char *algoname = NULL; 215 const char *algoname = NULL;
216 char * fingerprint = NULL; 216 char * fingerprint = NULL;
217 buffer * line = NULL; 217 buffer * line = NULL;
218 int ret; 218 int ret;
219 219
220 if (cli_opts.no_hostkey_check) {
221 fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost);
222 return;
223 }
224
220 hostsfile = open_known_hosts_file(&readonly); 225 hostsfile = open_known_hosts_file(&readonly);
221 if (!hostsfile) { 226 if (!hostsfile) {
222 ask_to_confirm(keyblob, keybloblen); 227 ask_to_confirm(keyblob, keybloblen);
223 /* ask_to_confirm will exit upon failure */ 228 /* ask_to_confirm will exit upon failure */
224 return; 229 return;