Ensure the default length calculation includes the content type byte
authorMatt Caswell <matt@openssl.org>
Tue, 12 Dec 2023 13:17:51 +0000 (13:17 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 19 Dec 2023 10:47:29 +0000 (10:47 +0000)
commite07b5e1a0a76f25c633a468d4f7945b82ae436bd
treecc6b1d7899dd9a3832b87985d9c5e8c54a1d6b61
parentce42b72cb1ca2ba8669bc28a70ed9dca28b7a551
Ensure the default length calculation includes the content type byte

TLSv1.3 includes an extra byte after the payload for the content type.
We should incorporate that in the calculation of the default buffer length.

Fixes #23015

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23021)
ssl/record/methods/tls_common.c