Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDTLSSeed ¶
GetDTLSSeed fetches a seed established by SetDTLSSeed, or nil for no seed as set by SetNoDTLSSeed, or returns an error if no seed is configured specified dial context.
func SetDTLSSeed ¶
SetDTLSSeed establishes a cached common/prng seed to be used when randomizing DTLS Hellos.
The seed is attached as a value to the input dial context, yielding the output context. This allows a fork of pion/dtls to fetch the seed, from a context, and apply randomization without having to fork many pion layers to pass in seeds.
Both sides of a WebRTC connection may randomize their Hellos. isOffer allows the same seed to be used, but produce two distinct random streams. The client generates or replays an obfuscation secret used to derive the seed, and the obfuscation secret is relayed to the proxy by the Broker.
Types ¶
This section is empty.