comparison cli-kex.c @ 1214:61d3f56808a4

Merge pull request #18 from annulen/dbclient_syslog Support syslog logging in dbclient.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Dec 2015 21:55:51 +0800
parents 7fd1211a1f63
children 8291fc87273e
comparison
equal deleted inserted replaced
1209:ab7d9c12caa7 1214:61d3f56808a4
188 FILE *tty = NULL; 188 FILE *tty = NULL;
189 char response = 'z'; 189 char response = 'z';
190 190
191 fp = sign_key_fingerprint(keyblob, keybloblen); 191 fp = sign_key_fingerprint(keyblob, keybloblen);
192 if (cli_opts.always_accept_key) { 192 if (cli_opts.always_accept_key) {
193 fprintf(stderr, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n", 193 dropbear_log(LOG_INFO, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n",
194 cli_opts.remotehost, 194 cli_opts.remotehost,
195 algoname, 195 algoname,
196 fp); 196 fp);
197 m_free(fp); 197 m_free(fp);
198 return; 198 return;
288 char * fingerprint = NULL; 288 char * fingerprint = NULL;
289 buffer * line = NULL; 289 buffer * line = NULL;
290 int ret; 290 int ret;
291 291
292 if (cli_opts.no_hostkey_check) { 292 if (cli_opts.no_hostkey_check) {
293 fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost); 293 dropbear_log(LOG_INFO, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost);
294 return; 294 return;
295 } 295 }
296 296
297 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen); 297 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen);
298 298