Transport TLS: Support ECH

This commit is contained in:
风扇滑翔翼 2024-09-15 04:04:26 +00:00 committed by GitHub
parent 781aaee21f
commit 4c7ca8beff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 33 additions and 13 deletions

View file

@ -389,6 +389,7 @@ type TLSConfig struct {
PinnedPeerCertificateChainSha256 *[]string `json:"pinnedPeerCertificateChainSha256"`
PinnedPeerCertificatePublicKeySha256 *[]string `json:"pinnedPeerCertificatePublicKeySha256"`
MasterKeyLog string `json:"masterKeyLog"`
ECHConfig string `json:"echConfig"`
}
// Build implements Buildable.
@ -444,6 +445,7 @@ func (c *TLSConfig) Build() (proto.Message, error) {
}
config.MasterKeyLog = c.MasterKeyLog
config.EchConfig = c.ECHConfig
return config, nil
}