]> git.ipfire.org Git - thirdparty/openssl.git/commit - include/openssl/ssl.h.in
Enforce secure renegotiation support by default
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 3 May 2021 19:16:19 +0000 (12:16 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 5 May 2021 15:13:51 +0000 (08:13 -0700)
commit72d2670bd21becfa6a64bb03fa55ad82d6d0c0f3
tree4efd2e8c0f9be4e19827548e7244da8958a262d1
parent8369592d35da7d321b8d2f4b5591acd72481111a
Enforce secure renegotiation support by default

Previously we would set SSL_OP_LEGACY_SERVER_CONNECT by default in
SSL_CTX_new(), to allow connections to legacy servers that did not
implement RFC 5746.

It has been more than a decade since RFC 5746 was published, so
there has been plenty of time for implmentation support to roll out.

Change the default behavior to be to require peers to support
secure renegotiation.  Existing applications that already cleared
SSL_OP_LEGACY_SERVER_CONNECT will see no behavior change, as
re-clearing the flag is just a little bit of redundant work.
The old behavior is still available by explicitly setting the flag
in the application.

Also remove SSL_OP_LEGACY_SERVER_CONNECT from SSL_OP_ALL, for
similar reasons.

Document the behavior change in CHANGES.md, and update the
SSL_CTX_set_options() and SSL_CONF_cmd manuals to reflect the change
in default behavior.

Fixes: 14848
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15127)
CHANGES.md
doc/man3/SSL_CONF_cmd.pod
doc/man3/SSL_CTX_set_options.pod
include/openssl/ssl.h.in
ssl/ssl_lib.c