]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/tls/handshake_messages_test.go
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / crypto / tls / handshake_messages_test.go
index 1f08f6ac0e22435ce584c13a08486a8981626886..ec8dea43fece01e1165a1206a4f6dd8dd06cba8e 100644 (file)
@@ -151,10 +151,10 @@ func (*clientHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
                }
        }
        if rand.Intn(10) > 5 {
-               m.supportedSignatureAlgorithms = supportedSignatureAlgorithms()
+               m.supportedSignatureAlgorithms = supportedSignatureAlgorithms(VersionTLS13)
        }
        if rand.Intn(10) > 5 {
-               m.supportedSignatureAlgorithmsCert = supportedSignatureAlgorithms()
+               m.supportedSignatureAlgorithmsCert = supportedSignatureAlgorithms(VersionTLS13)
        }
        for i := 0; i < rand.Intn(5); i++ {
                m.alpnProtocols = append(m.alpnProtocols, randomString(rand.Intn(20)+1, rand))
@@ -386,10 +386,10 @@ func (*certificateRequestMsgTLS13) Generate(rand *rand.Rand, size int) reflect.V
                m.scts = true
        }
        if rand.Intn(10) > 5 {
-               m.supportedSignatureAlgorithms = supportedSignatureAlgorithms()
+               m.supportedSignatureAlgorithms = supportedSignatureAlgorithms(VersionTLS13)
        }
        if rand.Intn(10) > 5 {
-               m.supportedSignatureAlgorithmsCert = supportedSignatureAlgorithms()
+               m.supportedSignatureAlgorithmsCert = supportedSignatureAlgorithms(VersionTLS13)
        }
        if rand.Intn(10) > 5 {
                m.certificateAuthorities = make([][]byte, 3)