Mercurial > dropbear
comparison cli-kex.c @ 753:d63ef1e211ea
Take transmit and receive keys into use separately
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 04 Apr 2013 00:18:50 +0800 |
parents | 15999b098cc9 |
children | a9f2a6ae4eb5 |
comparison
equal
deleted
inserted
replaced
752:24172f555f9c | 753:d63ef1e211ea |
---|---|
254 } | 254 } |
255 | 255 |
256 /* Compare hostnames */ | 256 /* Compare hostnames */ |
257 if (strncmp(cli_opts.remotehost, buf_getptr(line, hostlen), | 257 if (strncmp(cli_opts.remotehost, buf_getptr(line, hostlen), |
258 hostlen) != 0) { | 258 hostlen) != 0) { |
259 TRACE2(("hosts don't match")) | |
260 continue; | 259 continue; |
261 } | 260 } |
262 | 261 |
263 buf_incrpos(line, hostlen); | 262 buf_incrpos(line, hostlen); |
264 if (buf_getbyte(line) != ' ') { | 263 if (buf_getbyte(line) != ' ') { |