21 #ifndef _ASTERISK_RES_SRTP_H
22 #define _ASTERISK_RES_SRTP_H
void(* set_ssrc)(struct ast_srtp_policy *policy, unsigned long ssrc, int inbound)
int(* change_source)(struct ast_srtp *srtp, unsigned int from_ssrc, unsigned int to_ssrc)
void(* destroy)(struct ast_srtp_policy *policy)
void(* set_cb)(struct ast_srtp *srtp, const struct ast_srtp_cb *cb, void *data)
int(* protect)(struct ast_srtp *srtp, void **buf, int *size, int rtcp)
int(* create)(struct ast_srtp **srtp, struct ast_rtp_instance *rtp, struct ast_srtp_policy *policy)
int(* unprotect)(struct ast_srtp *srtp, void *buf, int *size, int rtcp)
void(* destroy)(struct ast_srtp *srtp)
int(* replace)(struct ast_srtp **srtp, struct ast_rtp_instance *rtp, struct ast_srtp_policy *policy)
int(* set_suite)(struct ast_srtp_policy *policy, enum ast_srtp_suite suite)
int(* add_stream)(struct ast_srtp *srtp, struct ast_srtp_policy *policy)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int(* no_ctx)(struct ast_rtp_instance *rtp, unsigned long ssrc, void *data)
int(* get_random)(unsigned char *key, size_t len)
unsigned char buf[8192+AST_FRIENDLY_OFFSET]
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)