libSRTP 2.6.0
|
represents the policy for an SRTP session. More...
#include <srtp.h>
Data Fields | |
srtp_ssrc_t | ssrc |
srtp_crypto_policy_t | rtp |
srtp_crypto_policy_t | rtcp |
unsigned char * | key |
unsigned long | num_master_keys |
void * | deprecated_ekt |
unsigned long | window_size |
int | allow_repeat_tx |
int * | enc_xtn_hdr |
int | enc_xtn_hdr_count |
struct srtp_policy_t * | next |
A single srtp_policy_t struct represents the policy for a single SRTP stream, and a linked list of these elements represents the policy for an entire SRTP session. Each element contains the SRTP and SRTCP crypto policies for that stream, a pointer to the SRTP master key for that stream, the SSRC describing that stream, or a flag indicating a ‘wildcard’ SSRC value, and a ‘next’ field that holds a pointer to the next element in the list of policy elements, or NULL if it is the last element.
The wildcard value SSRC_ANY_INBOUND matches any SSRC from an inbound stream that for which there is no explicit SSRC entry in another policy element. Similarly, the value SSRC_ANY_OUTBOUND will matches any SSRC from an outbound stream that does not appear in another policy element. Note that wildcard SSRCs &b cannot be used to match both inbound and outbound traffic. This restriction is intentional, and it allows libSRTP to ensure that no security lapses result from accidental re-use of SSRC values during key sharing.
int srtp_policy_t::allow_repeat_tx |
Whether retransmissions of
packets with the same sequence
number are allowed.
(Note that such repeated
transmissions must have the same
RTP payload, or a severe security
weakness is introduced!)
void* srtp_policy_t::deprecated_ekt |
Number of master keys
DEPRECATED: pointer to the EKT
policy structure for this stream
int* srtp_policy_t::enc_xtn_hdr |
List of header ids to encrypt.
int srtp_policy_t::enc_xtn_hdr_count |
Number of entries in list of header ids.
unsigned char* srtp_policy_t::key |
Pointer to the SRTP master key for
this stream.
struct srtp_policy_t* srtp_policy_t::next |
Pointer to next stream policy.
unsigned long srtp_policy_t::num_master_keys |
Array of Master Key structures
srtp_crypto_policy_t srtp_policy_t::rtcp |
SRTCP crypto policy.
srtp_crypto_policy_t srtp_policy_t::rtp |
SRTP crypto policy.
srtp_ssrc_t srtp_policy_t::ssrc |
The SSRC value of stream, or the
flags SSRC_ANY_INBOUND or
SSRC_ANY_OUTBOUND if key sharing
is used for this policy element.
unsigned long srtp_policy_t::window_size |
The window size to use for replay
protection.