]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: assert on SSL_set_shutdown with BoringSSL
authorEmmanuel Hocdet <manu@gandi.net>
Sun, 8 Jan 2017 13:07:39 +0000 (14:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Jan 2017 11:44:40 +0000 (12:44 +0100)
commit405ff31e31eb1cbdc76ba0d93c6db4c7a3fd497a
tree2946ef02e7a0892fc16e65cdbfec976ee6158384
parentb7a4c34aac42a981d0fb8e733c0efb521d4e003e
BUG/MINOR: ssl: assert on SSL_set_shutdown with BoringSSL

With BoringSSL:
SSL_set_shutdown: Assertion `(SSL_get_shutdown(ssl) & mode) == SSL_get_shutdown(ssl)' failed.

"SSL_set_shutdown causes ssl to behave as if the shutdown bitmask (see SSL_get_shutdown)
were mode. This may be used to skip sending or receiving close_notify in SSL_shutdown by
causing the implementation to believe the events already happened.
It is an error to use SSL_set_shutdown to unset a bit that has already been set.
Doing so will trigger an assert in debug builds and otherwise be ignored.
Use SSL_CTX_set_quiet_shutdown instead."

Change logic to not notify on SSL_shutdown when connection is not clean.
src/ssl_sock.c