X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tls_gost.go;h=0acb77868fff9e87569afda1a63f7af3380f8a5e;hb=0dd0012853840370bc03871d71a8fa0b9274b80a;hp=6500443621ac919401b0bbe75fe11ff55cdaf445;hpb=cf9d61221429725f7345009b24001bfba42ec91b;p=godlighty.git diff --git a/tls_gost.go b/tls_gost.go index 6500443..0acb778 100644 --- a/tls_gost.go +++ b/tls_gost.go @@ -6,14 +6,7 @@ package godlighty import "crypto/tls" func CHIHasGOST(chi *tls.ClientHelloInfo) bool { - tls13Found := false - for _, v := range chi.SupportedVersions { - if v == tls.VersionTLS13 { - tls13Found = true - break - } - } - if !tls13Found { + if !CHIHasTLS13(chi) { return false } for _, ss := range chi.SignatureSchemes {