Rework tls13_legacy_shutdown() to match the legacy stack behaviour.
authorjsing <jsing@openbsd.org>
Sat, 27 Jan 2024 14:34:28 +0000 (14:34 +0000)
committerjsing <jsing@openbsd.org>
Sat, 27 Jan 2024 14:34:28 +0000 (14:34 +0000)
commitc6c33055fcfe1c8a16b4fcc948bf60ec3a0f5084
tree49f01362708a12ee58331e516b3940761ef5d14e
parent34cd1859b983bd249841b1563f57d2bf811b736d
Rework tls13_legacy_shutdown() to match the legacy stack behaviour.

Respect the ssl->shutdown flags rather than what has actually happened,
return -1 for all EOF errors and completely ignore the return value when
attempting to read a close-notify from the wire.

ok tb@
lib/libssl/tls13_legacy.c