]> Sergey Matveev's repositories - godlighty.git/blobdiff - tls_gost.go
Use mtime instead of ctime
[godlighty.git] / tls_gost.go
index 6500443621ac919401b0bbe75fe11ff55cdaf445..0acb77868fff9e87569afda1a63f7af3380f8a5e 100644 (file)
@@ -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 {