//go: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 { return false } for _, ss := range chi.SignatureSchemes { switch ss { case tls.GOSTR34102012256A, tls.GOSTR34102012256B, tls.GOSTR34102012256C, tls.GOSTR34102012256D, tls.GOSTR34102012512A, tls.GOSTR34102012512B, tls.GOSTR34102012512C: return true } } return false }