summaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/go-connections/tlsconfig/versions_other.go
blob: a5ba7f4a3880942b739e1c160814d5ffe0afad3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +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: {},
}