23 #if defined(HAVE_SRTP) || defined(ORTP_HAVE_SRTP)
24 #if defined(ANDROID) || !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
28 # include <srtp/srtp.h>
33 typedef int err_status_t;
34 typedef struct srtp_policy srtp_policy_t;
39 #undef PACKAGE_BUGREPORT
42 #undef PACKAGE_TARNAME
43 #undef PACKAGE_VERSION
53 enum ortp_srtp_crypto_suite_t {
62 ORTP_PUBLIC err_status_t ortp_srtp_init(
void);
63 ORTP_PUBLIC err_status_t ortp_srtp_create(srtp_t *session,
const srtp_policy_t *policy);
64 ORTP_PUBLIC err_status_t ortp_srtp_dealloc(srtp_t session);
65 ORTP_PUBLIC err_status_t ortp_srtp_add_stream(srtp_t session,
const srtp_policy_t *policy);
66 ORTP_PUBLIC err_status_t ortp_srtp_remove_stream(srtp_t session, uint32_t ssrc);
67 ORTP_PUBLIC err_status_t ortp_crypto_get_random(uint8_t *tmp,
int size);
68 ORTP_PUBLIC bool_t ortp_srtp_supported(
void);
75 ORTP_PUBLIC
void srtp_transport_destroy(
RtpTransport *tp);
77 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);
82 ORTP_PUBLIC
void ortp_srtp_shutdown(
void);
Definition: rtpsession.h:105
Definition: rtpsession.h:92