comparison packet.c @ 538:7c8cdc5d2269

merge of '0a8dfaa3e5365a2004db2b55895e11f65b5cefcc' and 'ef3b41f37e9f4dd45358bc40f9559ee23f71c284'
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Mar 2009 22:30:39 +0000
parents 21490eea261d
children ccdc4c6183c0
comparison
equal deleted inserted replaced
537:7de2f22ea759 538:7c8cdc5d2269
248 &ses.keys->recv.cipher_state) != CRYPT_OK) { 248 &ses.keys->recv.cipher_state) != CRYPT_OK) {
249 dropbear_exit("error decrypting"); 249 dropbear_exit("error decrypting");
250 } 250 }
251 buf_incrpos(ses.readbuf, len); 251 buf_incrpos(ses.readbuf, len);
252 252
253 printhex("readbuf decrypted", ses.readbuf->data, ses.readbuf->len);
254
255 /* check the hmac */ 253 /* check the hmac */
256 if (checkmac() != DROPBEAR_SUCCESS) { 254 if (checkmac() != DROPBEAR_SUCCESS) {
257 dropbear_exit("Integrity error"); 255 dropbear_exit("Integrity error");
258 } 256 }
259 257