Mercurial > dropbear
comparison cli-kex.c @ 568:005530560594
Rearrange getaddrstring() etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Sep 2009 16:38:26 +0000 |
parents | 9e51707cd6f2 |
children | 2b1bb792cd4d 0fd32a552ea5 7fc0aeada79c |
comparison
equal
deleted
inserted
replaced
567:893a9dd0b9dd | 568:005530560594 |
---|---|
302 if (!cli_opts.always_accept_key) { | 302 if (!cli_opts.always_accept_key) { |
303 /* put the new entry in the file */ | 303 /* put the new entry in the file */ |
304 fseek(hostsfile, 0, SEEK_END); /* In case it wasn't opened append */ | 304 fseek(hostsfile, 0, SEEK_END); /* In case it wasn't opened append */ |
305 buf_setpos(line, 0); | 305 buf_setpos(line, 0); |
306 buf_setlen(line, 0); | 306 buf_setlen(line, 0); |
307 buf_putbytes(line, ses.remotehost, hostlen); | 307 buf_putbytes(line, cli_opts.remotehost, hostlen); |
308 buf_putbyte(line, ' '); | 308 buf_putbyte(line, ' '); |
309 buf_putbytes(line, algoname, algolen); | 309 buf_putbytes(line, algoname, algolen); |
310 buf_putbyte(line, ' '); | 310 buf_putbyte(line, ' '); |
311 len = line->size - line->pos; | 311 len = line->size - line->pos; |
312 TRACE(("keybloblen %d, len %d", keybloblen, len)) | 312 TRACE(("keybloblen %d, len %d", keybloblen, len)) |