don't generate a key share with Curve ID 0 in the ServerHello tests

0 is used as a sentinel value when determining if the key share should
be marshalled.
Šī revīzija ir iekļauta:
Marten Seemann 2018-08-17 19:56:39 +07:00 revīziju iesūtīja Kris Kwiatkowski
vecāks 9919e0e977
revīzija e20b4d2a9a

Parādīt failu

@ -210,7 +210,7 @@ func (*serverHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
}
if rand.Intn(10) > 5 {
m.keyShare.group = CurveID(rand.Intn(30000))
m.keyShare.group = CurveID(rand.Intn(30000) + 1)
m.keyShare.data = randomBytes(rand.Intn(300)+1, rand)
}
if rand.Intn(10) > 5 {