24 #if defined(ANDROID) || defined(WINAPI_FAMILY_PHONE_APP) 28 #include <srtp/config.h> 29 #include <srtp/crypto_kernel.h> 30 #include <srtp/srtp.h> 35 typedef int err_status_t;
36 typedef int srtp_policy_t;
43 #undef PACKAGE_BUGREPORT 46 #undef PACKAGE_TARNAME 47 #undef PACKAGE_VERSION 53 enum ortp_srtp_crypto_suite_t {
60 ORTP_PUBLIC err_status_t ortp_srtp_init(
void);
61 ORTP_PUBLIC err_status_t ortp_srtp_create(srtp_t *session,
const srtp_policy_t *policy);
62 ORTP_PUBLIC err_status_t ortp_srtp_dealloc(srtp_t session);
63 ORTP_PUBLIC err_status_t ortp_srtp_add_stream(srtp_t session,
const srtp_policy_t *policy);
64 ORTP_PUBLIC err_status_t ortp_crypto_get_random(uint8_t *tmp,
int size);
65 ORTP_PUBLIC bool_t ortp_srtp_supported(
void);
69 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);
71 ORTP_PUBLIC
void ortp_srtp_shutdown(
void);
Definition: rtpsession.h:92