]> Sergey Matveev's repositories - godlighty.git/blobdiff - tls_gost.go
Use mtime instead of ctime
[godlighty.git] / tls_gost.go
index 1ad67b42cb6ecd3cc6f25b82ae654f6267ef64c9..0acb77868fff9e87569afda1a63f7af3380f8a5e 100644 (file)
@@ -1,18 +1,12 @@
 //go:build !nogostls13
+// +build !nogostls13
 
 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 {