From 59c578cf04f96e02871c509d9c64a3d26a6467a4 Mon Sep 17 00:00:00 2001 From: Aron Wieck Date: Thu, 9 Aug 2018 15:37:23 +0200 Subject: Add methods for DTLS/SRTP key handshake --- openssl-sys/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'openssl-sys/src/lib.rs') diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 8002ab21..eeb664d5 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -184,6 +184,22 @@ pub struct ERR_STRING_DATA { pub string: *const c_char, } +pub const SRTP_AES128_CM_SHA1_80: c_ulong = 0x0001; +pub const SRTP_AES128_CM_SHA1_32: c_ulong = 0x0002; +pub const SRTP_AES128_F8_SHA1_80: c_ulong = 0x0003; +pub const SRTP_AES128_F8_SHA1_32: c_ulong = 0x0004; +pub const SRTP_NULL_SHA1_80: c_ulong = 0x0005; +pub const SRTP_NULL_SHA1_32: c_ulong = 0x0006; + +#[repr(C)] +pub struct SRTP_PROTECTION_PROFILE { + pub name: *const c_char, + pub id: c_ulong, +} + +/// fake free method, since SRTP_PROTECTION_PROFILE is static +pub unsafe fn SRTP_PROTECTION_PROFILE_free(_profile: *mut SRTP_PROTECTION_PROFILE) {} + pub type SHA_LONG = c_uint; pub type SHA_LONG64 = u64; -- cgit v1.2.3