forked from wolfSSL/wolfssl
sniffer: set ssl->curSize before invoking Do* routines
commit 99a99e3d6e
changes DoApplication to
use ssl->curSize as the size of the current decrypted record. Fix
sniffer code to set this value.
This commit is contained in:
@ -5006,6 +5006,7 @@ static const byte* DecryptMessage(WOLFSSL* ssl, const byte* input, word32 sz,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssl->curSize = sz;
|
||||||
ssl->keys.encryptSz = sz;
|
ssl->keys.encryptSz = sz;
|
||||||
if (ssl->options.tls1_1 && ssl->specs.cipher_type == block) {
|
if (ssl->options.tls1_1 && ssl->specs.cipher_type == block) {
|
||||||
output += ssl->specs.block_size; /* go past TLSv1.1 IV */
|
output += ssl->specs.block_size; /* go past TLSv1.1 IV */
|
||||||
|
Reference in New Issue
Block a user