Skip to content

Commit e37cbb0

Browse files
committed
crypto/tls: remove tls10default GODEBUG flag
Updates #45428 Change-Id: Ic2ff459e6a3f1e8ded2a770c11d34067c0b39a8a Reviewed-on: https://go-review.googlesource.com/c/go/+/400974 Reviewed-by: Filippo Valsorda <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Filippo Valsorda <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
1 parent 930327b commit e37cbb0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

common.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"crypto/x509"
1919
"errors"
2020
"fmt"
21-
"internal/godebug"
2221
"io"
2322
"net"
2423
"strings"
@@ -974,9 +973,6 @@ var supportedVersions = []uint16{
974973
VersionTLS10,
975974
}
976975

977-
// debugEnableTLS10 enables TLS 1.0. See issue 45428.
978-
var debugEnableTLS10 = godebug.Get("tls10default") == "1"
979-
980976
// roleClient and roleServer are meant to call supportedVersions and parents
981977
// with more readability at the callsite.
982978
const roleClient = true
@@ -985,7 +981,7 @@ const roleServer = false
985981
func (c *Config) supportedVersions(isClient bool) []uint16 {
986982
versions := make([]uint16, 0, len(supportedVersions))
987983
for _, v := range supportedVersions {
988-
if (c == nil || c.MinVersion == 0) && !debugEnableTLS10 &&
984+
if (c == nil || c.MinVersion == 0) &&
989985
isClient && v < VersionTLS12 {
990986
continue
991987
}

0 commit comments

Comments
 (0)