Skip to content

Commit

Permalink
sniffer: set ssl->curSize before invoking Do* routines
Browse files Browse the repository at this point in the history
commit 99a99e3 changes DoApplication to
use ssl->curSize as the size of the current decrypted record. Fix
sniffer code to set this value.
  • Loading branch information
rizlik committed Oct 7, 2024
1 parent 213ac1a commit 92faa91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5006,6 +5006,7 @@ static const byte* DecryptMessage(WOLFSSL* ssl, const byte* input, word32 sz,
return NULL;
}

ssl->curSize = sz;
ssl->keys.encryptSz = sz;
if (ssl->options.tls1_1 && ssl->specs.cipher_type == block) {
output += ssl->specs.block_size; /* go past TLSv1.1 IV */
Expand Down

0 comments on commit 92faa91

Please sign in to comment.