//go:build !nogostls13
+// +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 {
+ if !CHIHasTLS13(chi) {
return false
}
for _, ss := range chi.SignatureSchemes {