Skip to content

Commit 5799c13

Browse files
cpugopherbot
authored andcommitted
crypto/tls: rm marshalEncryptedClientHelloConfigList dead code
This package internal function has no call sites. Change-Id: I262058199fd2f387ef3b5e21099421720cc5413e Reviewed-on: https://go-review.googlesource.com/c/go/+/707815 TryBot-Bypass: Daniel McCarney <[email protected]> Auto-Submit: Roland Shoemaker <[email protected]> Auto-Submit: Daniel McCarney <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
1 parent 633dd1d commit 5799c13

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/crypto/tls/ech.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -568,16 +568,6 @@ func parseECHExt(ext []byte) (echType echExtType, cs echCipher, configID uint8,
568568
return echType, cs, configID, bytes.Clone(encap), bytes.Clone(payload), nil
569569
}
570570

571-
func marshalEncryptedClientHelloConfigList(configs []EncryptedClientHelloKey) ([]byte, error) {
572-
builder := cryptobyte.NewBuilder(nil)
573-
builder.AddUint16LengthPrefixed(func(builder *cryptobyte.Builder) {
574-
for _, c := range configs {
575-
builder.AddBytes(c.Config)
576-
}
577-
})
578-
return builder.Bytes()
579-
}
580-
581571
func (c *Conn) processECHClientHello(outer *clientHelloMsg, echKeys []EncryptedClientHelloKey) (*clientHelloMsg, *echServerContext, error) {
582572
echType, echCiphersuite, configID, encap, payload, err := parseECHExt(outer.encryptedClientHello)
583573
if err != nil {

0 commit comments

Comments
 (0)