diff options
| author | Steven Fackler <[email protected]> | 2018-08-19 18:50:11 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-08-19 18:50:11 -0700 |
| commit | ef7721092dbf1e8b8572a0d9f081b2e7eed36960 (patch) | |
| tree | f2ba96394bb573c5f9559ad66942159b7b109f8f /openssl-sys/src/lib.rs | |
| parent | Merge pull request #975 from eun-ice/master (diff) | |
| download | rust-openssl-ef7721092dbf1e8b8572a0d9f081b2e7eed36960.tar.xz rust-openssl-ef7721092dbf1e8b8572a0d9f081b2e7eed36960.zip | |
SRTP cleanup
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index eeb664d5..2433e624 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -197,9 +197,6 @@ pub struct SRTP_PROTECTION_PROFILE { 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; @@ -2899,4 +2896,9 @@ extern "C" { pub fn SSL_set_connect_state(s: *mut SSL); pub fn SSL_set_accept_state(s: *mut SSL); + + pub fn SSL_set_tlsext_use_srtp(ssl: *mut ::SSL, profiles: *const c_char) -> c_int; + pub fn SSL_CTX_set_tlsext_use_srtp(ctx: *mut ::SSL_CTX, 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; } |