HomeFreeBSD

KTLS: Add using_ktls helper variable in ssl3_get_record().

Description

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

(cherry picked from commit 0fc28f22d5b6a75d8a0449262a05cefe1040f982)
(cherry picked from commit 65e292cdf15539472ffe3ecf561951d08fa2a76d)

Approved by: re (gjb)

Details

Provenance
jhbAuthored on Mar 8 2022, 12:55 AM
Parents
rG1c8967e3bd76: KTLS: Check for unprocessed receive records in ktls_configure_crypto.
Branches
Unknown
Tags
Unknown