Fix dtls_get_max_record_overhead()
authorMatt Caswell <matt@openssl.org>
Wed, 26 Oct 2022 15:55:46 +0000 (16:55 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 7 Nov 2022 10:59:20 +0000 (10:59 +0000)
commitb05fbac1fc4f9c54a4e7a71728396e8f1b18707e
tree20e704e95f69df94c96aa41c305f8692d03dfe4d
parent830eae60a61876a5bcd267f47e224269852dcc29
Fix dtls_get_max_record_overhead()

We fix dtls_get_max_record_overhead() to give a better value for the max
record overhead. We can't realistically handle the compression case so we
just ignore that.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19516)
ssl/record/methods/dtls_meth.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls13_meth.c
ssl/record/methods/tls_common.c
ssl/t1_enc.c