瀏覽代碼

gofmt: gofmt -s -w src misc

R=r, bradfitzwork
CC=golang-dev
https://golang.org/cl/4406044
tls13
Robert Griesemer 13 年之前
父節點
當前提交
8cf428d710
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      common.go
  2. +1
    -1
      handshake_messages_test.go

+ 1
- 1
common.go 查看文件

@@ -255,7 +255,7 @@ var varDefaultCipherSuites []uint16
func initDefaultCipherSuites() {
varDefaultCipherSuites = make([]uint16, len(cipherSuites))
i := 0
for id, _ := range cipherSuites {
for id := range cipherSuites {
varDefaultCipherSuites[i] = id
i++
}


+ 1
- 1
handshake_messages_test.go 查看文件

@@ -121,7 +121,7 @@ func (*clientHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
m.ocspStapling = rand.Intn(10) > 5
m.supportedPoints = randomBytes(rand.Intn(5)+1, rand)
m.supportedCurves = make([]uint16, rand.Intn(5)+1)
for i, _ := range m.supportedCurves {
for i := range m.supportedCurves {
m.supportedCurves[i] = uint16(rand.Intn(30000))
}



Loading…
取消
儲存