summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-09 23:26:39 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-09 23:26:39 +0000
commit7d7c13cbab72b5afb37797fda8e8ac46af49a716 (patch)
treebdd782b78922a05660124f8503bf0ff0053c7961
parent0feb83e222cc357e55506c530239030fa232bd80 (diff)
Don't disable TLS v1.2 by default now.
-rw-r--r--apps/s_client.c3
-rw-r--r--apps/s_server.c3
-rw-r--r--ssl/ssl_lib.c2
3 files changed, 0 insertions, 8 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 683169aa68..ef45e43cd1 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1106,9 +1106,6 @@ bad:
SSL_CTX_set_psk_client_callback(ctx, psk_client_cb);
}
#endif
- /* HACK while TLS v1.2 is disabled by default */
- if (!(off & SSL_OP_NO_TLSv1_2))
- SSL_CTX_clear_options(ctx, SSL_OP_NO_TLSv1_2);
if (bugs)
SSL_CTX_set_options(ctx,SSL_OP_ALL|off);
else
diff --git a/apps/s_server.c b/apps/s_server.c
index 17ee441009..35b24ee54a 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1526,9 +1526,6 @@ bad:
SSL_CTX_set_quiet_shutdown(ctx,1);
if (bugs) SSL_CTX_set_options(ctx,SSL_OP_ALL);
if (hack) SSL_CTX_set_options(ctx,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
- /* HACK while TLS v1.2 is disabled by default */
- if (!(off & SSL_OP_NO_TLSv1_2))
- SSL_CTX_clear_options(ctx, SSL_OP_NO_TLSv1_2);
SSL_CTX_set_options(ctx,off);
/* DTLS: partial reads end up discarding unread UDP bytes :-(
* Setting read ahead solves this problem.
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index c983474f58..3a87572b39 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1849,8 +1849,6 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)
* deployed might change this.
*/
ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
- /* Disable TLS v1.2 by default for now */
- ret->options |= SSL_OP_NO_TLSv1_2;
return(ret);
err: