]> git.kaiwu.me - nginx.git/commit
SSL: fixed SSL_clear_options() usage with OpenSSL 1.1.0+.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 Jul 2018 14:47:20 +0000 (17:47 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 Jul 2018 14:47:20 +0000 (17:47 +0300)
commitf7dd520ba55bf5af871c40aa87a22c5255c6f754
tree4195e2af8d04638f044973692db2018fb4dd0eff
parent1ef51847ca4b9c548c68abee801e2ea8047e80a3
SSL: fixed SSL_clear_options() usage with OpenSSL 1.1.0+.

In OpenSSL 1.1.0 the SSL_CTRL_CLEAR_OPTIONS macro was removed, so
conditional compilation test on it results in SSL_clear_options()
and SSL_CTX_clear_options() not being used.  Notably, this caused
"ssl_prefer_server_ciphers off" to not work in SNI-based virtual
servers if server preference was switched on in the default server.

It looks like the only possible fix is to test OPENSSL_VERSION_NUMBER
explicitly.
src/event/ngx_event_openssl.c
src/http/ngx_http_request.c