]> git.ipfire.org Git - thirdparty/openssl.git/commit
KTLS: Add using_ktls helper variable in ssl3_get_record().
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 8 Mar 2022 00:55:18 +0000 (16:55 -0800)
committerTomas Mraz <tomas@openssl.org>
Wed, 6 Apr 2022 11:15:27 +0000 (13:15 +0200)
commit031132c297e54cbc20404a0bf8de6ed863196399
tree0a89dedeca4b2b6ca95bb1af7cf82e5836c6178a
parent85773128d0e80cd8dcc772a6931d385b8cf4acd1
KTLS: Add using_ktls helper variable in ssl3_get_record().

When KTLS receive is enabled, pending data may still be present due to
read ahead.  This data must still be processed the same as records
received without KTLS.  To ease readability (especially in
consideration of additional checks which will be added for TLS 1.3),
add a helper variable 'using_ktls' that is true when the KTLS receive
path is being used to receive a record.

Co-authored-by: Dmitry Podgorny <pasis.ua@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17942)
ssl/record/ssl3_record.c