]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
OpenSSL: Correct the return value of BIO_get_ktls_*().
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 17 Aug 2021 21:37:47 +0000 (14:37 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 24 Aug 2021 00:59:34 +0000 (17:59 -0700)
commitebe38d767ff3c735a60a9de2ed3d42cd794b5917
tree282fae7e02b309757a7ce14323e33ca77433b0bc
parentdf8406ca0f053649dbd6a808486141a11bb4c3a8
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
1.

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)
crypto/openssl/crypto/bio/bss_conn.c
crypto/openssl/crypto/bio/bss_fd.c
crypto/openssl/crypto/bio/bss_sock.c