]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.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)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 19 Oct 2023 18:34:58 +0000 (11:34 -0700)
commit0fc28f22d5b6a75d8a0449262a05cefe1040f982
tree45ef647ad2410b4374821dcb2df0a8b06f64d676
parenteee55a22b20214ca41cd6b1bbea79b863c8c11ac
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.

Obtained from: OpenSSL commit 031132c297e54cbc20404a0bf8de6ed863196399
crypto/openssl/ssl/record/ssl3_record.c