21#ifndef _ASTERISK_RES_SRTP_H
22#define _ASTERISK_RES_SRTP_H
Asterisk main include file. File version handling, generic pbx functions.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
@ AST_AES_CM_128_HMAC_SHA1_80
@ AST_AES_CM_128_HMAC_SHA1_32
@ AST_AES_CM_256_HMAC_SHA1_32
@ AST_AES_CM_192_HMAC_SHA1_80
@ AST_AES_CM_256_HMAC_SHA1_80
@ AST_AES_CM_192_HMAC_SHA1_32
int(* no_ctx)(struct ast_rtp_instance *rtp, unsigned long ssrc, void *data)
void(* destroy)(struct ast_srtp_policy *policy)
int(* set_master_key)(struct ast_srtp_policy *policy, const unsigned char *key, size_t key_len, const unsigned char *salt, size_t salt_len)
void(* set_ssrc)(struct ast_srtp_policy *policy, unsigned long ssrc, int inbound)
int(* set_suite)(struct ast_srtp_policy *policy, enum ast_srtp_suite suite)
void(* destroy)(struct ast_srtp *srtp)
int(* unprotect)(struct ast_srtp *srtp, void *buf, int *size, int rtcp)
int(* change_source)(struct ast_srtp *srtp, unsigned int from_ssrc, unsigned int to_ssrc)
int(* protect)(struct ast_srtp *srtp, void **buf, int *size, int rtcp)
int(* get_random)(unsigned char *key, size_t len)
int(* replace)(struct ast_srtp **srtp, struct ast_rtp_instance *rtp, struct ast_srtp_policy *policy)
int(* add_stream)(struct ast_srtp *srtp, struct ast_srtp_policy *policy)
int(* create)(struct ast_srtp **srtp, struct ast_rtp_instance *rtp, struct ast_srtp_policy *policy)
void(* set_cb)(struct ast_srtp *srtp, const struct ast_srtp_cb *cb, void *data)