HomeFreeBSD

OpenSSL: Correct the return value of BIO_get_ktls_*().

Description

OpenSSL: Correct the return value of BIO_get_ktls_*().

BIO_get_ktls_send() and BIO_get_ktls_recv() are documented as
returning either 0 or 1. However, they were actually returning the
internal value of the associated BIO flag for the true case instead of

Also trim redundant ternary operators.

Reviewed by: jkim
Obtained from: OpenSSL (f16e52b67c9261bdc7e1284a50502a802921ac6d)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31438

(cherry picked from commit 334d228a204c16d1384a978ab9b209e4e7e33275)

Details

Provenance
jhbAuthored on Aug 17 2021, 9:37 PM
Reviewer
jkim
Differential Revision
D31438: OpenSSL: Correct the return value of BIO_get_ktls_*().
Parents
rGdf8406ca0f05: nfs tls: Update for SSL_OP_ENABLE_KTLS.
Branches
Unknown
Tags
Unknown