Mercurial > dropbear
comparison common-packet.c @ 22:c1e5d9195402
merge of abac2150ee4f4031a98016241fbd136d24fed127
and ffa047425729e478a5b49b1ab0f8ec71c08a1421
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 23 Jun 2004 07:14:16 +0000 |
parents | fe6bca95afa7 |
children |
comparison
equal
deleted
inserted
replaced
14:5ae28f6101c1 | 22:c1e5d9195402 |
---|---|
400 } | 400 } |
401 #endif | 401 #endif |
402 | 402 |
403 | 403 |
404 | 404 |
405 /* This must be called directly after receiving the unimplemented packet. | |
406 * Isn't the most clean implementation, it relies on packet processing | |
407 * occurring directly after decryption. This is reasonably valid, since | |
408 * there is only a single decryption buffer */ | |
409 void recv_unimplemented() { | |
410 | |
411 CHECKCLEARTOWRITE(); | |
412 | |
413 buf_putbyte(ses.writepayload, SSH_MSG_UNIMPLEMENTED); | |
414 /* the decryption routine increments the sequence number, we must | |
415 * decrement */ | |
416 buf_putint(ses.writepayload, ses.recvseq - 1); | |
417 | |
418 encrypt_packet(); | |
419 } | |
420 | 405 |
421 /* encrypt the writepayload, putting into writebuf, ready for write_packet() | 406 /* encrypt the writepayload, putting into writebuf, ready for write_packet() |
422 * to put on the wire */ | 407 * to put on the wire */ |
423 void encrypt_packet() { | 408 void encrypt_packet() { |
424 | 409 |