Add support for moving data from one epoch to the next
authorMatt Caswell <matt@openssl.org>
Tue, 17 May 2022 15:16:40 +0000 (16:16 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Aug 2022 15:38:12 +0000 (16:38 +0100)
commit359affdead3af497f1673204c5c34061d28dfa7b
treefd1e0a8e72431305421949c308aca51879c7dbaa
parentf7565348c22785f69239883feb1f3c91d1cfd675
Add support for moving data from one epoch to the next

Sometimes data read by a record layer in one epoch is actually intended for
the next epoch. For example in a TLS with read_ahead, the read_ahead data
could contain a KeyUpdate message followed by application data encrypted
with new keys. Therefore we implement a mechanism for passing this data
across the epochs.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)
ssl/record/methods/ktls_meth.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls_common.c
ssl/record/rec_layer_s3.c
ssl/record/recordmethod.h
ssl/ssl_lib.c
ssl/ssl_local.h