Mercurial > dropbear
comparison cli-kex.c @ 641:2b1bb792cd4d dropbear-tfm
- Update tfm changes to current default tip
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 21 Nov 2011 19:52:28 +0800 |
parents | 76097ec1a29a 005530560594 |
children |
comparison
equal
deleted
inserted
replaced
640:76097ec1a29a | 641:2b1bb792cd4d |
---|---|
303 if (!cli_opts.always_accept_key) { | 303 if (!cli_opts.always_accept_key) { |
304 /* put the new entry in the file */ | 304 /* put the new entry in the file */ |
305 fseek(hostsfile, 0, SEEK_END); /* In case it wasn't opened append */ | 305 fseek(hostsfile, 0, SEEK_END); /* In case it wasn't opened append */ |
306 buf_setpos(line, 0); | 306 buf_setpos(line, 0); |
307 buf_setlen(line, 0); | 307 buf_setlen(line, 0); |
308 buf_putbytes(line, ses.remotehost, hostlen); | 308 buf_putbytes(line, cli_opts.remotehost, hostlen); |
309 buf_putbyte(line, ' '); | 309 buf_putbyte(line, ' '); |
310 buf_putbytes(line, algoname, algolen); | 310 buf_putbytes(line, algoname, algolen); |
311 buf_putbyte(line, ' '); | 311 buf_putbyte(line, ' '); |
312 len = line->size - line->pos; | 312 len = line->size - line->pos; |
313 TRACE(("keybloblen %d, len %d", keybloblen, len)) | 313 TRACE(("keybloblen %d, len %d", keybloblen, len)) |
326 fclose(hostsfile); | 326 fclose(hostsfile); |
327 } | 327 } |
328 if (line != NULL) { | 328 if (line != NULL) { |
329 buf_free(line); | 329 buf_free(line); |
330 } | 330 } |
331 } | 331 m_free(fingerprint); |
332 } |