diff options
| author | Steven Fackler <[email protected]> | 2018-08-19 18:33:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-08-19 18:33:18 -0700 |
| commit | b07ebe44ed11443b344818ea9e9e6af2d70aab86 (patch) | |
| tree | d6f5d3551753772f96f685f6f7438b1be4f8b787 /openssl-sys/src/lib.rs | |
| parent | Merge pull request #974 from sfackler/shutdown (diff) | |
| parent | Add methods for DTLS/SRTP key handshake (diff) | |
| download | rust-openssl-b07ebe44ed11443b344818ea9e9e6af2d70aab86.tar.xz rust-openssl-b07ebe44ed11443b344818ea9e9e6af2d70aab86.zip | |
Merge pull request #975 from eun-ice/master
Add methods for DTLS/SRTP key handshake
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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; |