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