Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2023 Changes in this version + const VersionSSL30 + const VersionTLS10 + const VersionTLS11 + const VersionTLS12 + const VersionTLS13 + func GenerateKeyPair(timeFunc func() time.Time, serverName string) (*tls.Certificate, error) + func NewDialer(dialer N.Dialer, config Config) N.Dialer + func NewDialerFromOptions(router adapter.Router, dialer N.Dialer, serverAddress string, ...) (N.Dialer, error) + func ParseTLSVersion(version string) (uint16, error) + type Config = aTLS.Config + func NewClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) + func NewECHClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) + func NewRealityClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) + func NewSTDClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) + func NewUTLSClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) + type ConfigCompat = aTLS.ConfigCompat + type Conn = aTLS.Conn + func ClientHandshake(ctx context.Context, conn net.Conn, config Config) (Conn, error) + func ServerHandshake(ctx context.Context, conn net.Conn, config ServerConfig) (Conn, error) + type ConnectionState = tls.ConnectionState + type Dialer struct + func (d *Dialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) + func (d *Dialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error) + type STDClientConfig struct + func (s *STDClientConfig) Client(conn net.Conn) (Conn, error) + func (s *STDClientConfig) Clone() Config + func (s *STDClientConfig) Config() (*STDConfig, error) + func (s *STDClientConfig) NextProtos() []string + func (s *STDClientConfig) ServerName() string + func (s *STDClientConfig) SetNextProtos(nextProto []string) + func (s *STDClientConfig) SetServerName(serverName string) + type STDConfig = tls.Config + type STDConn = tls.Conn + type STDServerConfig struct + func (c *STDServerConfig) Client(conn net.Conn) (Conn, error) + func (c *STDServerConfig) Clone() Config + func (c *STDServerConfig) Close() error + func (c *STDServerConfig) Config() (*STDConfig, error) + func (c *STDServerConfig) NextProtos() []string + func (c *STDServerConfig) Server(conn net.Conn) (Conn, error) + func (c *STDServerConfig) ServerName() string + func (c *STDServerConfig) SetNextProtos(nextProto []string) + func (c *STDServerConfig) SetServerName(serverName string) + func (c *STDServerConfig) Start() error + type ServerConfig = aTLS.ServerConfig + func NewRealityServer(ctx context.Context, router adapter.Router, logger log.Logger, ...) (ServerConfig, error) + func NewSTDServer(ctx context.Context, router adapter.Router, logger log.Logger, ...) (ServerConfig, error) + func NewServer(ctx context.Context, router adapter.Router, logger log.Logger, ...) (ServerConfig, error) + type ServerConfigCompat = aTLS.ServerConfigCompat + type WithSessionIDGenerator = aTLS.WithSessionIDGenerator