1 use libc::*;
2 
3 use *;
4 
5 pub const SRTP_AES128_CM_SHA1_80: c_ulong = 0x0001;
6 pub const SRTP_AES128_CM_SHA1_32: c_ulong = 0x0002;
7 pub const SRTP_AES128_F8_SHA1_80: c_ulong = 0x0003;
8 pub const SRTP_AES128_F8_SHA1_32: c_ulong = 0x0004;
9 pub const SRTP_NULL_SHA1_80: c_ulong = 0x0005;
10 pub const SRTP_NULL_SHA1_32: c_ulong = 0x0006;
11 
12 /* AEAD SRTP protection profiles from RFC 7714 */
13 #[cfg(ossl110)]
14 pub const SRTP_AEAD_AES_128_GCM: c_ulong = 0x0007;
15 #[cfg(ossl110)]
16 pub const SRTP_AEAD_AES_256_GCM: c_ulong = 0x0008;
17 
18 extern "C" {
SSL_CTX_set_tlsext_use_srtp(ctx: *mut SSL_CTX, profiles: *const c_char) -> c_int19     pub fn SSL_CTX_set_tlsext_use_srtp(ctx: *mut SSL_CTX, profiles: *const c_char) -> c_int;
SSL_set_tlsext_use_srtp(ssl: *mut SSL, profiles: *const c_char) -> c_int20     pub fn SSL_set_tlsext_use_srtp(ssl: *mut SSL, profiles: *const c_char) -> c_int;
21 
SSL_get_srtp_profiles(ssl: *mut SSL) -> *mut stack_st_SRTP_PROTECTION_PROFILE22     pub fn SSL_get_srtp_profiles(ssl: *mut SSL) -> *mut stack_st_SRTP_PROTECTION_PROFILE;
SSL_get_selected_srtp_profile(ssl: *mut SSL) -> *mut SRTP_PROTECTION_PROFILE23     pub fn SSL_get_selected_srtp_profile(ssl: *mut SSL) -> *mut SRTP_PROTECTION_PROFILE;
24 }
25