From 5f380f3a5441e117d07b9b087ae77370a944daaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveirinha?= Date: Mon, 3 Jan 2022 18:13:57 +0000 Subject: [PATCH] TUN-5612: Make tls min/max version public visible --- tlsconfig/tlsconfig.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tlsconfig/tlsconfig.go b/tlsconfig/tlsconfig.go index 7b368d3d..fd255175 100644 --- a/tlsconfig/tlsconfig.go +++ b/tlsconfig/tlsconfig.go @@ -19,8 +19,8 @@ type TLSParameters struct { RootCAs []string ServerName string CurvePreferences []tls.CurveID - minVersion uint16 // min tls version. If zero, TLS1.0 is defined as minimum. - maxVersion uint16 // max tls version. If zero, last TLS version is used defined as limit (currently TLS1.3) + MinVersion uint16 // min tls version. If zero, TLS1.0 is defined as minimum. + MaxVersion uint16 // max tls version. If zero, last TLS version is used defined as limit (currently TLS1.3) } // GetConfig returns a TLS configuration according to the Config set by the user. @@ -74,8 +74,8 @@ func GetConfig(p *TLSParameters) (*tls.Config, error) { tlsconfig.CurvePreferences = []tls.CurveID{tls.CurveP256} } - tlsconfig.MinVersion = p.minVersion - tlsconfig.MaxVersion = p.maxVersion + tlsconfig.MinVersion = p.MinVersion + tlsconfig.MaxVersion = p.MaxVersion return tlsconfig, nil }