Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListener ¶
func AddListener(src string, conn *ipv4.PacketConn)
AddListener adds the socket to a map that can be accessed by OpenSSL for sending This only needed until DTLS is rewritten in native Go
func RemoveListener ¶
func RemoveListener(src string)
RemoveListener removes the socket from a map that can be accessed by OpenSSL for sending This only needed until DTLS is rewritten in native Go
Types ¶
type State ¶
type State struct { *TLSCfg // contains filtered or unexported fields }
State represents all the state needed for a DTLS session
func (*State) DoHandshake ¶
func (d *State) DoHandshake()
DoHandshake sends the DTLS handshake it the remote peer
func (*State) HandleDTLSPacket ¶
HandleDTLSPacket checks if the packet is a DTLS packet, and if it is passes to the DTLS session
type TLSCfg ¶
type TLSCfg struct {
// contains filtered or unexported fields
}
TLSCfg holds the Certificate/PrivateKey used for a single RTCPeerConnection
func (*TLSCfg) Fingerprint ¶
Fingerprint generates a SHA-256 fingerprint of the certificate
Click to show internal directories.
Click to hide internal directories.