]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix downgrading of TOE TLS sockets to plain TOE.
authorjhb <jhb@FreeBSD.org>
Thu, 3 Dec 2020 21:49:20 +0000 (21:49 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 3 Dec 2020 21:49:20 +0000 (21:49 +0000)
commitfbe3ad7a3cf9ca09b231a8ab744b43c10e3f8aa7
tree4b68e3363c3d340252dd6073ee39fddf7d84a0a9
parent56e3f9554e0c1940842ca21ec4cf9fa41c239542
Fix downgrading of TOE TLS sockets to plain TOE.

If a TOE TLS socket ends up using an unsupported TLS version or
ciphersuite, it must be downgraded to a "plain" TOE socket with TLS
encryption/decryption performed on the host.  The previous
implementation of this fallback was incomplete and resulted in hung
connections.

Reviewed by: np
MFC after: 2 weeks
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27467
sys/dev/cxgbe/t4_main.c
sys/dev/cxgbe/tom/t4_tls.c