core: v2ray.com/core/common/protocol/tls Index | Files | Directories

package tls

import "v2ray.com/core/common/protocol/tls"

Index

Package Files

sniff.go

func IsValidTLSVersion Uses

func IsValidTLSVersion(major, minor byte) bool

func ReadClientHello Uses

func ReadClientHello(data []byte, h *SniffHeader) error

ReadClientHello returns server name (if any) from TLS client hello message. https://github.com/golang/go/blob/master/src/crypto/tls/handshake_messages.go#L300

type SniffHeader Uses

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

func SniffTLS Uses

func SniffTLS(b []byte) (*SniffHeader, error)

func (*SniffHeader) Domain Uses

func (h *SniffHeader) Domain() string

func (*SniffHeader) Protocol Uses

func (h *SniffHeader) Protocol() string

Directories

PathSynopsis
cert

Package tls imports 4 packages (graph) and is imported by 2 packages. Updated 2019-03-31. Refresh now. Tools for package owners.