comparison cli-kex.c @ 1213:7fd1211a1f63

Use dropbear_log instead of some fprintf's in client code.
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Tue, 01 Dec 2015 21:56:11 +0300
parents 6aeadee3f16b
children 8291fc87273e
comparison
equal deleted inserted replaced
1212:bf626d259eb1 1213:7fd1211a1f63
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