don’t panic if the certificate chain contains cached entries

This commit is contained in:
Marten Seemann
2016-12-03 17:26:23 +07:00
parent a3dcac8239
commit 44303fcd4b

View File

@@ -111,7 +111,8 @@ func decompressChain(data []byte) ([][]byte, error) {
switch et {
case entryCached:
panic("not yet implemented")
// we're not sending any certificate hashes in the CHLO, so there shouldn't be any cached certificates in the chain
return nil, errors.New("unexpected cached certificate")
case entryCommon:
e := entry{t: entryCommon}
e.h, err = utils.ReadUint64(r)