Versions in this module Expand all Collapse all v0 v0.1.2 Jan 23, 2024 v0.1.1 Jan 16, 2024 Changes in this version + const TLS_AES_128_GCM_SHA256 + const TLS_AES_256_GCM_SHA384 + const TLS_CHACHA20_POLY1305_SHA256 + const TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA + const TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 + const TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + const TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA + const TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 + const TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 + const TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 + const TLS_ECDHE_ECDSA_WITH_RC4_128_SHA + const TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA + const TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA + const TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 + const TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 + const TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA + const TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 + const TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 + const TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 + const TLS_ECDHE_RSA_WITH_RC4_128_SHA + const TLS_FALLBACK_SCSV + const TLS_RSA_WITH_3DES_EDE_CBC_SHA + const TLS_RSA_WITH_AES_128_CBC_SHA + const TLS_RSA_WITH_AES_128_CBC_SHA256 + const TLS_RSA_WITH_AES_128_GCM_SHA256 + const TLS_RSA_WITH_AES_256_CBC_SHA + const TLS_RSA_WITH_AES_256_GCM_SHA384 + const TLS_RSA_WITH_RC4_128_SHA + const VersionSSL30 + const VersionTLS10 + const VersionTLS11 + const VersionTLS12 + const VersionTLS13 + var ErrClosed = fs.ErrClosed + var ErrExists = fs.ErrExist + var ErrInvalid = fs.ErrInvalid + func CipherSuites(u []uint16) []string + func CompressionMethods(u []uint8) []string + func PeekClientHelloInfo(ctx context.Context, conn net.Conn) (*tls.ClientHelloInfo, net.Conn, error) + func ReadClientHelloInfo(ctx context.Context, f io.Reader) (*tls.ClientHelloInfo, error) + func SignatureAlgos(u []SignatureScheme) []string + func SupportedVersions(u []uint16) []string + func VersionName(u uint16) string + type ClientHelloInfo struct + ALPNProtocols []string + CipherSuites []uint16 + CompressionMethods []uint8 + ServerName string + SupportedSignatureAlgorithms []SignatureScheme + SupportedSignatureAlgorithmsCert []SignatureScheme + SupportedVersions []uint16 + Vers uint16 + func GetInfo(buf []byte) *ClientHelloInfo + type Conn struct + func (c *Conn) Read(b []byte) (int, error) + type CurveID uint16 + type Dispatcher struct + Context context.Context + GetHandler func(*tls.ClientHelloInfo) Handler + Logger slog.Logger + OnAccept func(net.Conn) (net.Conn, error) + OnError func(err error) bool + func (d *Dispatcher) Accept() (net.Conn, error) + func (d *Dispatcher) Addr() net.Addr + func (d *Dispatcher) Cancel() + func (d *Dispatcher) Cancelled() bool + func (d *Dispatcher) Close() error + func (d *Dispatcher) Err() error + func (d *Dispatcher) Serve(ln net.Listener) error + func (d *Dispatcher) Shutdown(context.Context) error + func (d *Dispatcher) Wait() error + type Handler func(context.Context, net.Conn) error + type SignatureScheme uint16 + const ECDSAWithP256AndSHA256 + const ECDSAWithP384AndSHA384 + const ECDSAWithP521AndSHA512 + const ECDSAWithSHA1 + const Ed25519 + const PKCS1WithSHA1 + const PKCS1WithSHA256 + const PKCS1WithSHA384 + const PKCS1WithSHA512 + const PSSWithSHA256 + const PSSWithSHA384 + const PSSWithSHA512