mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-31 11:31:07 +02:00
17 lines
362 B
Go
17 lines
362 B
Go
package tlsutil
|
|
|
|
import "crypto/tls"
|
|
|
|
// TLSLookup maps the tls_min_version configuration to the internal value
|
|
var TLSLookup = map[string]uint16{
|
|
"tls10": tls.VersionTLS10,
|
|
"tls11": tls.VersionTLS11,
|
|
"tls12": tls.VersionTLS12,
|
|
}
|
|
|
|
var TLSReverseLookup = map[uint16]string{
|
|
tls.VersionTLS10: "tls10",
|
|
tls.VersionTLS11: "tls11",
|
|
tls.VersionTLS12: "tls12",
|
|
}
|