//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: return true } } return false }