When adding cipherExtraData(), also account for TLSv1.3.

This commit is contained in:
John Safranek
2021-10-27 14:31:56 -07:00
parent 9f3f9c53fd
commit 7cbfb27fa0

View File

@@ -19532,7 +19532,7 @@ int SendData(WOLFSSL* ssl, const void* data, int sz)
} }
#endif #endif
outputSz = buffSz + COMP_EXTRA + DTLS_RECORD_HEADER_SZ; outputSz = buffSz + COMP_EXTRA + DTLS_RECORD_HEADER_SZ;
if (IsEncryptionOn(ssl, 1)) if (IsEncryptionOn(ssl, 1) || ssl->options.tls1_3)
outputSz += cipherExtraData(ssl); outputSz += cipherExtraData(ssl);
/* check for available size */ /* check for available size */