Versions in this module Expand all Collapse all v1 v1.5.6 Mar 27, 2022 Changes in this version + var Certificate_Usage_name = map[int32]string + var Certificate_Usage_value = map[string]int32 + var File_transport_internet_tls_config_proto protoreflect.FileDescriptor + var Fingerprints = map[string]*utls.ClientHelloID + func CalculatePEMCertChainSHA256Hash(certContent []byte) string + func Client(c net.Conn, config *tls.Config) net.Conn + func GenerateCertChainHash(rawCerts [][]byte) []byte + func Server(c net.Conn, config *tls.Config) net.Conn + func UClient(c net.Conn, config *tls.Config, fingerprint *utls.ClientHelloID) net.Conn + type Certificate struct + Certificate []byte + CertificatePath string + Key []byte + KeyPath string + OcspStapling uint64 + OneTimeLoading bool + Usage Certificate_Usage + func ParseCertificate(c *cert.Certificate) *Certificate + func (*Certificate) Descriptor() ([]byte, []int) + func (*Certificate) ProtoMessage() + func (x *Certificate) GetCertificate() []byte + func (x *Certificate) GetCertificatePath() string + func (x *Certificate) GetKey() []byte + func (x *Certificate) GetKeyPath() string + func (x *Certificate) GetOcspStapling() uint64 + func (x *Certificate) GetOneTimeLoading() bool + func (x *Certificate) GetUsage() Certificate_Usage + func (x *Certificate) ProtoReflect() protoreflect.Message + func (x *Certificate) Reset() + func (x *Certificate) String() string + type Certificate_Usage int32 + const Certificate_AUTHORITY_ISSUE + const Certificate_AUTHORITY_VERIFY + const Certificate_ENCIPHERMENT + func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor + func (Certificate_Usage) EnumDescriptor() ([]byte, []int) + func (Certificate_Usage) Type() protoreflect.EnumType + func (x Certificate_Usage) Enum() *Certificate_Usage + func (x Certificate_Usage) Number() protoreflect.EnumNumber + func (x Certificate_Usage) String() string + type Config struct + AllowInsecure bool + Certificate []*Certificate + CipherSuites string + DisableSystemRoot bool + EnableSessionResumption bool + Fingerprint string + MaxVersion string + MinVersion string + NextProtocol []string + PinnedPeerCertificateChainSha256 [][]byte + PreferServerCipherSuites bool + RejectUnknownSni bool + ServerName string + func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Config + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (c *Config) BuildCertificates() []*tls.Certificate + func (c *Config) GetTLSConfig(opts ...Option) *tls.Config + func (x *Config) GetAllowInsecure() bool + func (x *Config) GetCertificate() []*Certificate + func (x *Config) GetCipherSuites() string + func (x *Config) GetDisableSystemRoot() bool + func (x *Config) GetEnableSessionResumption() bool + func (x *Config) GetFingerprint() string + func (x *Config) GetMaxVersion() string + func (x *Config) GetMinVersion() string + func (x *Config) GetNextProtocol() []string + func (x *Config) GetPinnedPeerCertificateChainSha256() [][]byte + func (x *Config) GetPreferServerCipherSuites() bool + func (x *Config) GetRejectUnknownSni() bool + func (x *Config) GetServerName() string + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type Conn struct + func (c *Conn) HandshakeAddress() net.Address + func (c *Conn) WriteMultiBuffer(mb buf.MultiBuffer) error + type Option func(*tls.Config) + func WithDestination(dest net.Destination) Option + func WithNextProto(protocol ...string) Option + type UConn struct + func (c *UConn) HandshakeAddress() net.Address