From dca283b66503865dfa3869d7976a925105b82211 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 10 Nov 2023 20:32:15 +0100 Subject: [PATCH] tlsconfig: drop support for go1.12 and older Signed-off-by: Sebastiaan van Stijn --- tlsconfig/{versions_go113.go => versions.go} | 2 -- tlsconfig/versions_other.go | 15 --------------- 2 files changed, 17 deletions(-) rename tlsconfig/{versions_go113.go => versions.go} (94%) delete mode 100644 tlsconfig/versions_other.go diff --git a/tlsconfig/versions_go113.go b/tlsconfig/versions.go similarity index 94% rename from tlsconfig/versions_go113.go rename to tlsconfig/versions.go index d8215f8e7..d9496ff85 100644 --- a/tlsconfig/versions_go113.go +++ b/tlsconfig/versions.go @@ -1,5 +1,3 @@ -// +build go1.13 - package tlsconfig import ( diff --git a/tlsconfig/versions_other.go b/tlsconfig/versions_other.go deleted file mode 100644 index a5ba7f4a3..000000000 --- a/tlsconfig/versions_other.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build !go1.13 - -package tlsconfig - -import ( - "crypto/tls" -) - -// allTLSVersions lists all the TLS versions and is used by the code that validates -// a uint16 value as a TLS version. -var allTLSVersions = map[uint16]struct{}{ - tls.VersionTLS10: {}, - tls.VersionTLS11: {}, - tls.VersionTLS12: {}, -}