MINOR: ssl: removes SSL_CTX_set_ssl_version call and cleanup CTX creation.
authorEmmanuel Hocdet <manu@gandi.net>
Fri, 3 Mar 2017 11:21:32 +0000 (12:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Mar 2017 09:20:20 +0000 (10:20 +0100)
commit4de1ff1fd6973a8c206806bd092581eda09d3cfb
treeda73599a86660f4365c30c4dc93885a2dd9a0bce
parentd3850603933c9319528375088a9b28b9b345246b
MINOR: ssl: removes SSL_CTX_set_ssl_version call and cleanup CTX creation.

BoringSSL doesn't support SSL_CTX_set_ssl_version. To remove this call, the
CTX creation is cleanup to clarify what is happening. SSL_CTX_new is used to
match the original behavior, in order: force-<method> according the method
version then the default method with no-<method> options.
OPENSSL_NO_SSL3 error message is now in force-sslv3 parsing (as force-tls*).
For CTX creation in bind environement, all CTX set related to the initial ctx
are aggregate to ssl_sock_new_ctx function for clarity.

Tests with crt-list have shown that server_method, options and mode are
linked to the initial CTX (default_ctx): all ssl-options are link to each
bind line and must be removed from crt-list.
src/ssl_sock.c