diff options
author | jsing <> | 2014-10-15 17:39:34 +0000 |
---|---|---|
committer | jsing <> | 2014-10-15 17:39:34 +0000 |
commit | 2eef89d9c3ef3349d47fd880aae495afdc0b61ef (patch) | |
tree | 7b13b9e7e81fc1ddf031b897badcd5def78ba440 /src/lib | |
parent | fb2295a243990c62c45ad1bf4dd5b796d118ae38 (diff) | |
download | openbsd-2eef89d9c3ef3349d47fd880aae495afdc0b61ef.tar.gz openbsd-2eef89d9c3ef3349d47fd880aae495afdc0b61ef.tar.bz2 openbsd-2eef89d9c3ef3349d47fd880aae495afdc0b61ef.zip |
Disable SSLv3 by default.
SSLv3 has been long known to have weaknesses and the POODLE attack has
once again shown that it is effectively broken/insecure. As such, it is
time to stop enabling a protocol was deprecated almost 15 years ago.
If an application really wants to provide backwards compatibility, at the
cost of security, for now SSL_CTX_clear_option(ctx, SSL_OP_NO_SSLv3) can be
used to re-enable it on a per-application basis.
General agreement from many.
ok miod@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/src/ssl/ssl_lib.c | 5 | ||||
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libssl/src/ssl/ssl_lib.c b/src/lib/libssl/src/ssl/ssl_lib.c index f6a21d4351..d3108f2663 100644 --- a/src/lib/libssl/src/ssl/ssl_lib.c +++ b/src/lib/libssl/src/ssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.85 2014/10/03 13:58:18 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.86 2014/10/15 17:39:34 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1825,6 +1825,9 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
1825 | */ | 1825 | */ |
1826 | ret->options |= SSL_OP_LEGACY_SERVER_CONNECT; | 1826 | ret->options |= SSL_OP_LEGACY_SERVER_CONNECT; |
1827 | 1827 | ||
1828 | /* Disable SSLv3 by default. */ | ||
1829 | ret->options |= SSL_OP_NO_SSLv3; | ||
1830 | |||
1828 | return (ret); | 1831 | return (ret); |
1829 | err: | 1832 | err: |
1830 | SSLerr(SSL_F_SSL_CTX_NEW, | 1833 | SSLerr(SSL_F_SSL_CTX_NEW, |
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index f6a21d4351..d3108f2663 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.85 2014/10/03 13:58:18 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.86 2014/10/15 17:39:34 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1825,6 +1825,9 @@ SSL_CTX_new(const SSL_METHOD *meth) | |||
1825 | */ | 1825 | */ |
1826 | ret->options |= SSL_OP_LEGACY_SERVER_CONNECT; | 1826 | ret->options |= SSL_OP_LEGACY_SERVER_CONNECT; |
1827 | 1827 | ||
1828 | /* Disable SSLv3 by default. */ | ||
1829 | ret->options |= SSL_OP_NO_SSLv3; | ||
1830 | |||
1828 | return (ret); | 1831 | return (ret); |
1829 | err: | 1832 | err: |
1830 | SSLerr(SSL_F_SSL_CTX_NEW, | 1833 | SSLerr(SSL_F_SSL_CTX_NEW, |