Move logic for figuring out the record version out of record layer
authorMatt Caswell <matt@openssl.org>
Fri, 26 Aug 2022 16:34:40 +0000 (17:34 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 23 Sep 2022 13:54:49 +0000 (14:54 +0100)
commit1d3676778c280ef05044c4c9e696a4f8096530ea
treebe15477e46c3378a2c6b2c40db13f457e4af7d59
parente7694c69b5fed37f5cdf72b70f507c7188db7e3d
Move logic for figuring out the record version out of record layer

This calculation is based on lots of information from state machine and
elsewhere that the record layer cannot access. In reality it is sufficient
to simply tell the record layer what version to use.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19198)
ssl/record/methods/tls_common.c
ssl/record/rec_layer_s3.c
ssl/record/record.h
ssl/record/recordmethod.h
ssl/s3_msg.c
ssl/statem/extensions_clnt.c
ssl/statem/statem_clnt.c
ssl/statem/statem_lib.c