Add a shutdown sequence regress test.
authorjsing <jsing@openbsd.org>
Tue, 30 Jan 2024 14:46:46 +0000 (14:46 +0000)
committerjsing <jsing@openbsd.org>
Tue, 30 Jan 2024 14:46:46 +0000 (14:46 +0000)
commitff1ff8a01d1bf69dcc9f712703fdb95e504b436c
tree385f0a1be5690a239a0095b1d408bb8312c293e7
parent46d5331a5690e9580ab458fc7f641fc56e426f38
Add a shutdown sequence regress test.

Some software relies on SSL_shutdown() returning 0 (indicating close-notify
sent) before returning 1 on a subsequent call (indicating close-notify sent
and received). It is worth noting that there is no guarantee that this will
occur in normal operation, as the peer could send a close-notify prior to
SSL_shutdown() being called.

This is currently failing for TLSv1.3.
regress/lib/libssl/shutdown/shutdowntest.c