From 44303fcd4b3cc300f82732bcecd9f9b4efa71d4c Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 3 Dec 2016 17:26:23 +0700 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20panic=20if=20the=20certificate?= =?UTF-8?q?=20chain=20contains=20cached=20entries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto/cert_compression.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/cert_compression.go b/crypto/cert_compression.go index 096300d3..73ef00af 100644 --- a/crypto/cert_compression.go +++ b/crypto/cert_compression.go @@ -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)