Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version_x byte = 25 Version_y byte = 5 Version_z byte = 16 )
Functions ¶
func GetREALITYConfig ¶ added in v1.1.2
func GetREALITYConfig(c *RealityConfig) *reality.Config
func KeyLogWriterFromConfig ¶
func KeyLogWriterFromConfig(c *RealityConfig) io.Writer
Types ¶
type Engine ¶
type Engine struct {
Config *RealityConfig
}
func NewEngine ¶
func NewEngine(config *RealityConfig) (*Engine, error)
func (*Engine) GetClientConn ¶
type RealityConfig ¶
type RealityConfig = realpb.RealityConfig
type UConn ¶
type UConn struct {
*utls.UConn
ServerName string
// a shared secret that is used to encrypt
AuthKey []byte
Verified bool
}
func (*UConn) HandshakeAddress ¶
func (*UConn) VerifyPeerCertificate ¶
func (c *UConn) VerifyPeerCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
Click to show internal directories.
Click to hide internal directories.