]> Sergey Matveev's repositories - godlighty.git/blobdiff - tls_gost.go
Use mtime instead of ctime
[godlighty.git] / tls_gost.go
index a4ab28da5edac70aea776999d5371d529e6436a6..0acb77868fff9e87569afda1a63f7af3380f8a5e 100644 (file)
@@ -1,10 +1,14 @@
 //go:build !nogostls13
+// +build !nogostls13
 
 package godlighty
 
 import "crypto/tls"
 
 func CHIHasGOST(chi *tls.ClientHelloInfo) bool {
+       if !CHIHasTLS13(chi) {
+               return false
+       }
        for _, ss := range chi.SignatureSchemes {
                switch ss {
                case tls.GOSTR34102012256A, tls.GOSTR34102012256B, tls.GOSTR34102012256C, tls.GOSTR34102012256D, tls.GOSTR34102012512A, tls.GOSTR34102012512B, tls.GOSTR34102012512C: