24 #if defined(ANDROID) || defined(WINAPI_FAMILY_PHONE_APP) 28 #include <srtp/srtp.h> 33 typedef int err_status_t;
34 typedef int srtp_policy_t;
41 #undef PACKAGE_BUGREPORT 44 #undef PACKAGE_TARNAME 45 #undef PACKAGE_VERSION 51 enum ortp_srtp_crypto_suite_t {
58 ORTP_PUBLIC err_status_t ortp_srtp_init(
void);
59 ORTP_PUBLIC err_status_t ortp_srtp_create(srtp_t *session,
const srtp_policy_t *policy);
60 ORTP_PUBLIC err_status_t ortp_srtp_dealloc(srtp_t session);
61 ORTP_PUBLIC err_status_t ortp_srtp_add_stream(srtp_t session,
const srtp_policy_t *policy);
62 ORTP_PUBLIC err_status_t ortp_crypto_get_random(uint8_t *tmp,
int size);
63 ORTP_PUBLIC bool_t ortp_srtp_supported(
void);
67 ORTP_PUBLIC srtp_t ortp_srtp_create_configure_session(
enum ortp_srtp_crypto_suite_t suite, uint32_t ssrc,
const char* snd_key,
const char* rcv_key);
69 ORTP_PUBLIC
void ortp_srtp_shutdown(
void);
Definition: rtpsession.h:92