diff options
| author | Aron Wieck <[email protected]> | 2018-08-09 15:37:23 +0200 |
|---|---|---|
| committer | Aron Wieck <[email protected]> | 2018-08-14 16:04:33 +0200 |
| commit | 59c578cf04f96e02871c509d9c64a3d26a6467a4 (patch) | |
| tree | d6f5d3551753772f96f685f6f7438b1be4f8b787 /openssl-sys/src/lib.rs | |
| parent | Merge pull request #974 from sfackler/shutdown (diff) | |
| download | rust-openssl-59c578cf04f96e02871c509d9c64a3d26a6467a4.tar.xz rust-openssl-59c578cf04f96e02871c509d9c64a3d26a6467a4.zip | |
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; |