diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2021-05-03 12:16:19 -0700 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2021-05-05 08:13:51 -0700 |
commit | 72d2670bd21becfa6a64bb03fa55ad82d6d0c0f3 (patch) | |
tree | 4efd2e8c0f9be4e19827548e7244da8958a262d1 /include | |
parent | 8369592d35da7d321b8d2f4b5591acd72481111a (diff) |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h.in | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index d607d8d02f..d03fff6be5 100644 --- a/include/openssl/ssl.h.in +++ b/include/openssl/ssl.h.in @@ -425,7 +425,6 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg); */ # define SSL_OP_ALL (SSL_OP_CRYPTOPRO_TLSEXT_BUG|\ SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS|\ - SSL_OP_LEGACY_SERVER_CONNECT|\ SSL_OP_TLSEXT_PADDING|\ SSL_OP_SAFARI_ECDHE_ECDSA_BUG) |