Documentation
¶
Index ¶
- Variables
- func Curves() []tls.CurveID
- func EnableTLSCookies(cfg *tls.Config, logger *clog.CondLogger) *tls.Config
- func ExpectPeerName(name string, roots *x509.CertPool) func(cs tls.ConnectionState) error
- func FormatVersion(v uint16) string
- func LoadCAfile(filename string) (*x509.CertPool, error)
- func ParseCipherList(ciphers string) ([]uint16, error)
- func ParseCurveList(curves string) ([]tls.CurveID, error)
- func ParseVersion(s string) (uint16, error)
- func TLSConfigFromURL(u *url.URL) (*tls.Config, error)
- func TLSFactoryFromURL(u *url.URL) (func(c net.Conn, config *tls.Config) net.Conn, error)
- func TLSSessionIDToContext(ctx context.Context, conn net.Conn) context.Context
- type ConnTagger
- type PersistentClientSessionCache
- type TLSSessionID
- type TaggedConn
- type TaggedConnListener
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFormatVersionMismatch = errors.New("format version mismatch")
)
View Source
var SessionCache tls.ClientSessionCache = tls.NewLRUClientSessionCache(0)
Functions ¶
func EnableTLSCookies ¶ added in v1.44.0
func ExpectPeerName ¶
func FormatVersion ¶
func ParseCipherList ¶
func ParseVersion ¶
func TLSFactoryFromURL ¶ added in v1.28.0
Types ¶
type ConnTagger ¶ added in v1.44.0
type PersistentClientSessionCache ¶ added in v1.44.0
type PersistentClientSessionCache struct {
// contains filtered or unexported fields
}
func NewPersistentClientSessionCache ¶ added in v1.44.0
func NewPersistentClientSessionCache(path string, logger *clog.CondLogger) (*PersistentClientSessionCache, error)
func (*PersistentClientSessionCache) Get ¶ added in v1.44.0
func (cache *PersistentClientSessionCache) Get(sessionKey string) (*tls.ClientSessionState, bool)
func (*PersistentClientSessionCache) Put ¶ added in v1.44.0
func (cache *PersistentClientSessionCache) Put(sessionKey string, cs *tls.ClientSessionState)
type TLSSessionID ¶ added in v1.44.0
type TLSSessionID = [16]byte
func GetTLSSessionID ¶ added in v1.44.0
func GetTLSSessionID(conn net.Conn) (TLSSessionID, bool)
func NewTLSSessionID ¶ added in v1.44.0
func NewTLSSessionID() (res TLSSessionID)
func TLSSessionIDFromContext ¶ added in v1.44.0
func TLSSessionIDFromContext(ctx context.Context) (TLSSessionID, bool)
func TLSSessionIDFromState ¶ added in v1.44.0
func TLSSessionIDFromState(ss *tls.SessionState) (TLSSessionID, bool)
type TaggedConn ¶ added in v1.44.0
func NewTaggedConn ¶ added in v1.44.0
func NewTaggedConn(conn net.Conn) *TaggedConn
func (*TaggedConn) SetTag ¶ added in v1.44.0
func (c *TaggedConn) SetTag(key, value any)
type TaggedConnListener ¶ added in v1.44.0
func NewTaggedConnListener ¶ added in v1.44.0
func NewTaggedConnListener(l net.Listener) TaggedConnListener
Click to show internal directories.
Click to hide internal directories.