summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/ssl/ssl_lib.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-03-02 15:43:01 +0000
committerdelphij <delphij@FreeBSD.org>2016-03-02 15:43:01 +0000
commit73af9669cdc04af0c06344ce6f0d85808187eab3 (patch)
treef76285aeef43941ffcb77e3220027526a2c2c421 /crypto/openssl/ssl/ssl_lib.c
parent3b4b162df0228ed74a1e63eccc7315071254344f (diff)
downloadFreeBSD-src-73af9669cdc04af0c06344ce6f0d85808187eab3.zip
FreeBSD-src-73af9669cdc04af0c06344ce6f0d85808187eab3.tar.gz
Merge OpenSSL 1.0.1s. This is a security update.
Relnotes: yes Approved by: re (so@ implicit)
Diffstat (limited to 'crypto/openssl/ssl/ssl_lib.c')
-rw-r--r--crypto/openssl/ssl/ssl_lib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/openssl/ssl/ssl_lib.c b/crypto/openssl/ssl/ssl_lib.c
index 93d1cbe..33c52ac 100644
--- a/crypto/openssl/ssl/ssl_lib.c
+++ b/crypto/openssl/ssl/ssl_lib.c
@@ -1896,6 +1896,13 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)
*/
ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
+ /*
+ * Disable SSLv2 by default, callers that want to enable SSLv2 will have to
+ * explicitly clear this option via either of SSL_CTX_clear_options() or
+ * SSL_clear_options().
+ */
+ ret->options |= SSL_OP_NO_SSLv2;
+
return (ret);
err:
SSLerr(SSL_F_SSL_CTX_NEW, ERR_R_MALLOC_FAILURE);
OpenPOWER on IntegriCloud