Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextOption ¶
type ContextOption = srtp.ContextOption
func MasterKeyIndicator ¶
func MasterKeyIndicator(mki []byte) ContextOption
Expects a byte slice containing MKI value encoded in big-endian. Will be appended to packets we send.
type Options ¶
type Options struct {
// Profiles to advertise as our own. Generated with DefaultProfiles if empty.
// Passing the same set again keeps our master keys stable across re-offers.
Profiles []Profile
}
Options carries the local SRTP material to use for an offer or an answer.
func (*Options) LocalProfiles ¶
LocalProfiles returns the profiles from o, generating a fresh set if o is nil or empty.
type Profile ¶
type Profile struct {
Index int
Profile ProtectionProfile
Key []byte
Salt []byte
MKI []byte // Master Key Identifier, nil if not present
Lifetime uint64 // TODO: This is just a placeholder for future use
}
func DefaultProfiles ¶
type ProtectionProfile ¶
type ProtectionProfile string
func (ProtectionProfile) Parse ¶
func (p ProtectionProfile) Parse() (srtp.ProtectionProfile, error)
type SessionKeys ¶
type SessionKeys = srtp.SessionKeys
Click to show internal directories.
Click to hide internal directories.