Versions in this module Expand all Collapse all v1 v1.4.4 Aug 10, 2021 Changes in this version + var Certificate_Usage_name = map[int32]string + var Certificate_Usage_value = map[string]int32 + var File_transport_internet_xtls_config_proto protoreflect.FileDescriptor + func Client(c net.Conn, config *xtls.Config) net.Conn + func Server(c net.Conn, config *xtls.Config) 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 + MaxVersion string + MinVersion string + NextProtocol []string + PreferServerCipherSuites bool + ServerName string + func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Config + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (c *Config) BuildCertificates() []*xtls.Certificate + func (c *Config) GetXTLSConfig(opts ...Option) *xtls.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) GetMaxVersion() string + func (x *Config) GetMinVersion() string + func (x *Config) GetNextProtocol() []string + func (x *Config) GetPreferServerCipherSuites() 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 + type Option func(*xtls.Config) + func WithDestination(dest net.Destination) Option + func WithNextProto(protocol ...string) Option