comparison packet.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 24172f555f9c
children 0bf76f54de6f
comparison
equal deleted inserted replaced
752:24172f555f9c 753:d63ef1e211ea
503 503
504 if ((!ses.dataallowed && !packet_is_okay_kex(packet_type))) { 504 if ((!ses.dataallowed && !packet_is_okay_kex(packet_type))) {
505 /* During key exchange only particular packets are allowed. 505 /* During key exchange only particular packets are allowed.
506 Since this packet_type isn't OK we just enqueue it to send 506 Since this packet_type isn't OK we just enqueue it to send
507 after the KEX, see maybe_flush_reply_queue */ 507 after the KEX, see maybe_flush_reply_queue */
508 TRACE2(("Delay sending reply packet. dataallowed %d, type %d, sentnewkeys %d",
509 ses.dataallowed, packet_type, ses.kexstate.sentnewkeys))
510 enqueue_reply_packet(); 508 enqueue_reply_packet();
511 return; 509 return;
512 } 510 }
513 511
514 blocksize = ses.keys->trans.algo_crypt->blocksize; 512 blocksize = ses.keys->trans.algo_crypt->blocksize;