diff options
| author | Steven Fackler <[email protected]> | 2018-09-08 21:13:15 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-09-12 19:21:18 -0700 |
| commit | 93a4e96255744363b80603e821e94b551621fbd8 (patch) | |
| tree | 1c1e77369f63d55738a5cbeea65d2d7c515d2971 /openssl-sys/src/srtp.rs | |
| parent | clean up example (diff) | |
| download | rust-openssl-93a4e96255744363b80603e821e94b551621fbd8.tar.xz rust-openssl-93a4e96255744363b80603e821e94b551621fbd8.zip | |
Refactor openssl-sys
The old layout tried to structure itself by version but it ended up with
a lot of duplication. Instead, follow the structure of the header files.
Diffstat (limited to 'openssl-sys/src/srtp.rs')
| -rw-r--r-- | openssl-sys/src/srtp.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openssl-sys/src/srtp.rs b/openssl-sys/src/srtp.rs new file mode 100644 index 00000000..d31aa06e --- /dev/null +++ b/openssl-sys/src/srtp.rs @@ -0,0 +1,18 @@ +use libc::*; + +use *; + +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; + +extern "C" { + pub fn SSL_CTX_set_tlsext_use_srtp(ctx: *mut SSL_CTX, profiles: *const c_char) -> c_int; + pub fn SSL_set_tlsext_use_srtp(ssl: *mut SSL, profiles: *const c_char) -> c_int; + + pub fn SSL_get_srtp_profiles(ssl: *mut SSL) -> *mut stack_st_SRTP_PROTECTION_PROFILE; + pub fn SSL_get_selected_srtp_profile(ssl: *mut SSL) -> *mut SRTP_PROTECTION_PROFILE; +} |