From a6a7b148f874b32a34e833893971b471cd9cdeb7 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Thu, 27 Jun 2019 19:00:08 -0400 Subject: [PATCH] crypto/tls: deprecate SSLv3 support Updates #32716 Change-Id: Ia0c03918e8f2da4d9824c49c6d4cfca1b0787b0a Reviewed-on: https://go-review.googlesource.com/c/go/+/184102 Reviewed-by: Andrew Bonventre --- doc/go1.13.html | 8 ++++++++ src/crypto/tls/common.go | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/go1.13.html b/doc/go1.13.html index 9d2c65be2b..4240d4b1a7 100644 --- a/doc/go1.13.html +++ b/doc/go1.13.html @@ -534,6 +534,14 @@ godoc
crypto/tls
+

+ Support for SSL version 3.0 (SSLv3) + is now deprecated and will be removed in Go 1.14. Note that SSLv3 + is cryptographically + broken, is already disabled by default in crypto/tls, + and was never supported by Go clients. +

+

Ed25519 certificates are now supported in TLS versions 1.2 and 1.3.

diff --git a/src/crypto/tls/common.go b/src/crypto/tls/common.go index d135b1fc99..da1eae0800 100644 --- a/src/crypto/tls/common.go +++ b/src/crypto/tls/common.go @@ -23,11 +23,14 @@ import ( ) const ( - VersionSSL30 = 0x0300 VersionTLS10 = 0x0301 VersionTLS11 = 0x0302 VersionTLS12 = 0x0303 VersionTLS13 = 0x0304 + + // Deprecated: SSLv3 is cryptographically broken, and will be + // removed in Go 1.14. See golang.org/issue/32716. + VersionSSL30 = 0x0300 ) const ( -- 2.50.0