45#define AST_SRTP_CRYPTO_OFFER_OK (1 << 1)
46#define AST_SRTP_CRYPTO_TAG_32 (1 << 2)
47#define AST_SRTP_CRYPTO_TAG_80 (1 << 3)
48#define AST_SRTP_CRYPTO_TAG_16 (1 << 4)
49#define AST_SRTP_CRYPTO_TAG_8 (1 << 5)
50#define AST_SRTP_CRYPTO_AES_192 (1 << 6)
51#define AST_SRTP_CRYPTO_AES_256 (1 << 7)
52#define AST_SRTP_CRYPTO_OLD_NAME (1 << 8)
124typedef const char *(*sdp_srtp_get_attr_cb)(
struct ast_sdp_srtp *srtp,
int dtls_enabled,
int default_taglen_32);
222 unsigned int force_avp);
A set of macros to manage forward-linked lists.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
Pluggable RTP Architecture.
int ast_sdp_crypto_register(struct ast_sdp_crypto_api *api)
Register SDP SRTP crypto processing routines.
const char * ast_sdp_srtp_get_attrib(struct ast_sdp_srtp *srtp, int dtls_enabled, int default_taglen_32)
Get the crypto attribute line for the srtp structure.
struct ast_sdp_crypto * ast_sdp_crypto_alloc(void)
Initialize an return an ast_sdp_crypto struct.
struct ast_sdp_srtp * ast_sdp_srtp_alloc(void)
allocate a ast_sdp_srtp structure
const char *(* sdp_srtp_get_attr_cb)(struct ast_sdp_srtp *srtp, int dtls_enabled, int default_taglen_32)
Get the crypto attribute line for the srtp structure.
int ast_sdp_crypto_build_offer(struct ast_sdp_crypto *p, int taglen)
Generate an SRTP a=crypto offer.
int(* sdp_crypto_build_offer_cb)(struct ast_sdp_crypto *crypto, int taglen)
Generate an SRTP a=crypto offer.
int ast_sdp_crypto_process(struct ast_rtp_instance *rtp, struct ast_sdp_srtp *srtp, const char *attr)
Parse the a=crypto line from SDP and set appropriate values on the ast_sdp_crypto struct.
int(* sdp_crypto_parse_offer_cb)(struct ast_rtp_instance *rtp, struct ast_sdp_srtp *srtp, const char *attr)
Parse the a=crypto line from SDP and set appropriate values on the ast_sdp_crypto struct.
void ast_sdp_crypto_unregister(struct ast_sdp_crypto_api *api)
Unregister SDP SRTP crypto processing routines.
void ast_sdp_crypto_destroy(struct ast_sdp_crypto *crypto)
Destroy a previously allocated ast_sdp_crypto struct.
char * ast_sdp_get_rtp_profile(unsigned int sdes_active, struct ast_rtp_instance *instance, unsigned int using_avpf, unsigned int force_avp)
Get the RTP profile in use by a media session.
void ast_sdp_srtp_destroy(struct ast_sdp_srtp *srtp)
free a ast_sdp_srtp structure
void(* sdp_crypto_destroy_cb)(struct ast_sdp_crypto *crypto)
Destroy a previously allocated ast_sdp_crypto struct.
struct ast_sdp_crypto *(* sdp_crypto_alloc_cb)(void)
Initialize and return an ast_sdp_crypto struct.
sdp_crypto_parse_offer_cb parse_offer
sdp_crypto_alloc_cb alloc
sdp_crypto_build_offer_cb build_offer
sdp_crypto_destroy_cb dtor
sdp_srtp_get_attr_cb get_attr
structure for secure RTP audio
struct ast_sdp_srtp::@278 sdp_srtp_list
struct ast_sdp_crypto * crypto