24#if defined(ANDROID) || defined(WINAPI_FAMILY_PHONE_APP)
28#include <srtp2/srtp.h>
33typedef int srtp_err_status_t;
34typedef int srtp_policy_t;
41#undef PACKAGE_BUGREPORT
51enum ortp_srtp_crypto_suite_t {
58ORTP_PUBLIC srtp_err_status_t ortp_srtp_init(
void);
59ORTP_PUBLIC srtp_err_status_t ortp_srtp_create(srtp_t *session,
const srtp_policy_t *policy);
60ORTP_PUBLIC srtp_err_status_t ortp_srtp_dealloc(srtp_t session);
61ORTP_PUBLIC srtp_err_status_t ortp_srtp_add_stream(srtp_t session,
const srtp_policy_t *policy);
62ORTP_PUBLIC srtp_err_status_t ortp_crypto_get_random(uint8_t *tmp,
int size);
63ORTP_PUBLIC bool_t ortp_srtp_supported(
void);
67ORTP_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);
69ORTP_PUBLIC
void ortp_srtp_shutdown(
void);
71#ifndef srtp_err_reporting_init
72srtp_err_status_t srtp_err_reporting_init(
void);
Definition: rtpsession.h:93