Files
relspecgo/vendor/github.com/microsoft/go-mssqldb/msdsn/conn_str_go112pre.go
2026-02-07 15:51:20 +02:00

21 lines
330 B
Go

//go:build !go1.12
// +build !go1.12
package msdsn
import "crypto/tls"
func TLSVersionFromString(minTLSVersion string) uint16 {
switch minTLSVersion {
case "1.0":
return tls.VersionTLS10
case "1.1":
return tls.VersionTLS11
case "1.2":
return tls.VersionTLS12
default:
// use the tls package default
}
return 0
}