Add ECH TLS client

This commit is contained in:
世界
2022-09-09 18:19:50 +08:00
parent a3bb9c2877
commit 3ad4370fa5
8 changed files with 242 additions and 18 deletions

View File

@@ -834,6 +834,8 @@ type Config struct {
// Otherwise, if ECH is enabled, it will send a dummy ECH extension.
ClientECHConfigs []ECHConfig
GetClientECHConfigs func(ctx context.Context, serverName string) ([]ECHConfig, error)
// ServerECHProvider is the ECH provider used by the client-facing server
// for the ECH extension. If the client offers ECH and TLS 1.3 is
// negotiated, then the provider is used to compute the HPKE context