21 #ifndef _ASTERISK_RES_SRTP_H
22 #define _ASTERISK_RES_SRTP_H
44 int (*change_source)(
struct ast_srtp *srtp,
unsigned int from_ssrc,
unsigned int to_ssrc);
48 int (*unprotect)(
struct ast_srtp *srtp,
void *buf,
int *size,
int rtcp);
50 int (*protect)(
struct ast_srtp *srtp,
void **buf,
int *size,
int rtcp);
52 int (*get_random)(
unsigned char *key,
size_t len);
58 AST_AES_CM_128_HMAC_SHA1_80 = 1,
59 AST_AES_CM_128_HMAC_SHA1_32,
60 AST_AES_CM_256_HMAC_SHA1_80,
61 AST_AES_CM_256_HMAC_SHA1_32,
66 AST_AES_CM_192_HMAC_SHA1_80,
67 AST_AES_CM_192_HMAC_SHA1_32,
73 int (*set_suite)(
struct ast_srtp_policy *policy,
enum ast_srtp_suite suite);
74 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);
75 void (*set_ssrc)(
struct ast_srtp_policy *policy,
unsigned long ssrc,
int inbound);
Asterisk main include file. File version handling, generic pbx functions.
void(* destroy)(struct ast_srtp *srtp)
int(* create)(struct ast_srtp **srtp, struct ast_rtp_instance *rtp, struct ast_srtp_policy *policy)