Defer record header preparation to the protocol methods
authorMatt Caswell <matt@openssl.org>
Mon, 26 Sep 2022 16:44:11 +0000 (17:44 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 12 Oct 2022 14:53:31 +0000 (15:53 +0100)
commitaca70ca81c6fcf38554aa95a3a2c75e1eeb1a085
tree7f23a826399c1a073e7263d4c193ea706c5d86a9
parent7ca61d63e99726ef7874b88b96892dae75f51156
Defer record header preparation to the protocol methods

We introduce a new function to prepare the record header. KTLS has its own
version since this is done by the kernel.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19343)
ssl/record/methods/ktls_meth.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/ssl3_meth.c
ssl/record/methods/tls13_meth.c
ssl/record/methods/tls1_meth.c
ssl/record/methods/tls_common.c
ssl/record/methods/tlsany_meth.c