remove leftover code from v30

This commit is contained in:
Lucas Clemente
2016-08-18 10:31:28 +02:00
parent 1d7cf74e48
commit 6239d80492
2 changed files with 4 additions and 37 deletions

View File

@@ -28,15 +28,10 @@ func (ps *proofSource) SignServerProof(sni string, chlo []byte, serverConfigData
}
hash := sha256.New()
if len(chlo) > 0 {
hash.Write([]byte("QUIC CHLO and server config signature\x00"))
chloHash := sha256.Sum256(chlo)
hash.Write([]byte{32, 0, 0, 0})
hash.Write(chloHash[:])
} else {
// TODO: Remove when we drop support for version 30
hash.Write([]byte("QUIC server config signature\x00"))
}
hash.Write([]byte("QUIC CHLO and server config signature\x00"))
chloHash := sha256.Sum256(chlo)
hash.Write([]byte{32, 0, 0, 0})
hash.Write(chloHash[:])
hash.Write(serverConfigData)
key, ok := cert.PrivateKey.(crypto.Signer)