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/openssl/v10x.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/openssl/v10x.rs')
| -rw-r--r-- | openssl-sys/src/openssl/v10x.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl-sys/src/openssl/v10x.rs b/openssl-sys/src/openssl/v10x.rs index 92ad295c..6816f748 100644 --- a/openssl-sys/src/openssl/v10x.rs +++ b/openssl-sys/src/openssl/v10x.rs @@ -4,6 +4,7 @@ use std::process; use std::ptr; use std::sync::{Mutex, MutexGuard}; use std::sync::{Once, ONCE_INIT}; +use SRTP_PROTECTION_PROFILE; #[cfg(ossl102)] use libc::time_t; @@ -54,6 +55,12 @@ pub struct stack_st_OPENSSL_STRING { pub stack: _STACK, } + +#[repr(C)] +pub struct stack_st_SRTP_PROTECTION_PROFILE { + pub stack: _STACK, +} + #[repr(C)] pub struct _STACK { pub num: c_int, @@ -1002,4 +1009,9 @@ extern "C" { #[cfg(ossl102)] pub fn SSL_extension_supported(ext_type: c_uint) -> c_int; + + 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; } |