]> Sergey Matveev's repositories - godlighty.git/blob - tls_gost.go
Use mtime instead of ctime
[godlighty.git] / tls_gost.go
1 //go:build !nogostls13
2 // +build !nogostls13
3
4 package godlighty
5
6 import "crypto/tls"
7
8 func CHIHasGOST(chi *tls.ClientHelloInfo) bool {
9         if !CHIHasTLS13(chi) {
10                 return false
11         }
12         for _, ss := range chi.SignatureSchemes {
13                 switch ss {
14                 case tls.GOSTR34102012256A, tls.GOSTR34102012256B, tls.GOSTR34102012256C, tls.GOSTR34102012256D, tls.GOSTR34102012512A, tls.GOSTR34102012512B, tls.GOSTR34102012512C:
15                         return true
16                 }
17         }
18         return false
19 }