X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tls_gost.go;h=0acb77868fff9e87569afda1a63f7af3380f8a5e;hb=165d9a8cd3569e555ace6362f9f968cdc90241f1;hp=a4ab28da5edac70aea776999d5371d529e6436a6;hpb=16a92e8c1ea2a890d841019761be5c9f6b334f7a;p=godlighty.git diff --git a/tls_gost.go b/tls_gost.go index a4ab28d..0acb778 100644 --- a/tls_gost.go +++ b/tls_gost.go @@ -1,10 +1,14 @@ //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: