]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix ssl-{min,max}-ver with openssl < 1.1.0
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 11 Jun 2020 15:34:00 +0000 (17:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 11 Jun 2020 15:53:07 +0000 (17:53 +0200)
commitd0712f3873546a0c24f3204ad75dd7eacd689602
tree3db6e35fcaf50b2ae9f6fc555eeecd8637a2be28
parent588b3148d9e49a2c0ba4a12f4c11b6a9c5426d45
BUG/MINOR: ssl: fix ssl-{min,max}-ver with openssl < 1.1.0

In bug #676, it was reported that ssl-min-ver SSLv3 does not work in
Amazon environments with OpenSSL 1.0.2.

The reason for this is a patch of Amazon OpenSSL which sets
SSL_OP_NO_SSLv3 in SSL_CTX_new(). Which is kind of a problem with our
implementation of ssl-{min,max}-ver in old openSSL versions, because it
does not try to clear existing version flags.

This patch fixes the bug by cleaning versions flags known by HAProxy in
the SSL_CTX before applying the right ones.

Should be backported as far as 1.8.
src/ssl_sock.c