44 #define AST_SRTP_CRYPTO_OFFER_OK (1 << 1) 45 #define AST_SRTP_CRYPTO_TAG_32 (1 << 2) 46 #define AST_SRTP_CRYPTO_TAG_80 (1 << 3) 47 #define AST_SRTP_CRYPTO_TAG_16 (1 << 4) 48 #define AST_SRTP_CRYPTO_TAG_8 (1 << 5) 49 #define AST_SRTP_CRYPTO_AES_192 (1 << 6) 50 #define AST_SRTP_CRYPTO_AES_256 (1 << 7) 51 #define AST_SRTP_CRYPTO_OLD_NAME (1 << 8) 124 typedef const char *(*sdp_srtp_get_attr_cb)(
struct ast_sdp_srtp *srtp,
int dtls_enabled,
int default_taglen_32);
225 unsigned int force_avp);
structure for secure RTP audio
void ast_sdp_crypto_destroy(struct ast_sdp_crypto *crypto)
Destroy a previously allocated ast_sdp_crypto struct.
sdp_crypto_parse_offer_cb parse_offer
struct ast_sdp_crypto *(* sdp_crypto_alloc_cb)(void)
Initialize and return an ast_sdp_crypto struct.
int(* sdp_crypto_build_offer_cb)(struct ast_sdp_crypto *crypto, int taglen)
Generate an SRTP a=crypto offer.
sdp_crypto_build_offer_cb build_offer
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...
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...
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.
sdp_crypto_alloc_cb alloc
void(* sdp_crypto_destroy_cb)(struct ast_sdp_crypto *crypto)
Destroy a previously allocated ast_sdp_crypto struct.
sdp_crypto_destroy_cb dtor
struct ast_sdp_crypto * crypto
A set of macros to manage forward-linked lists.
int ast_sdp_crypto_build_offer(struct ast_sdp_crypto *p, int taglen)
Generate an SRTP a=crypto offer.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
struct ast_sdp_srtp * ast_sdp_srtp_alloc(void)
allocate a ast_sdp_srtp structure
struct ast_sdp_crypto * ast_sdp_crypto_alloc(void)
Initialize an return an ast_sdp_crypto struct.
void ast_sdp_srtp_destroy(struct ast_sdp_srtp *srtp)
free a ast_sdp_srtp structure
struct ast_sdp_srtp::@318 sdp_srtp_list
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.
void ast_sdp_crypto_unregister(struct ast_sdp_crypto_api *api)
Unregister SDP SRTP crypto processing routines.
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.
Pluggable RTP Architecture.
sdp_srtp_get_attr_cb get_attr