tls

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.3.3

func NewClient(c *protocol.TlsConfig, p netapi.Proxy) (netapi.Proxy, error)

func NewServer added in v0.3.3

func NewServer(c *listener.Tls, ii netapi.Listener) (netapi.Listener, error)

func NewTlsAutoServer added in v0.3.8

func NewTlsAutoServer(c *listener.TlsAuto, ii netapi.Listener) (netapi.Listener, error)

func TlsAutoConfig added in v0.3.8

func TlsAutoConfig(ca *cert.Ca, nextProto []string, servername []string) *tls.Config

Types

type ServerCert added in v0.3.8

type ServerCert struct {
	// contains filtered or unexported fields
}

func (*ServerCert) Cert added in v0.3.8

func (s *ServerCert) Cert() (*tls.Certificate, error)

type Tls

type Tls struct {
	netapi.EmptyDispatch
	// contains filtered or unexported fields
}

func (*Tls) Conn

func (t *Tls) Conn(ctx context.Context, addr netapi.Address) (net.Conn, error)

func (*Tls) PacketConn

func (t *Tls) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL