diff options
author | Hyeonu Park <nemo1275@gmail.com> | 2020-11-16 20:13:31 +0900 |
---|---|---|
committer | Hyeonu Park <nemo1275@gmail.com> | 2020-11-18 22:57:17 +0900 |
commit | d2c54348a58214613f7ed07270801a28ea58ee20 (patch) | |
tree | a3e2a56daaff3c8076a48b5bbc976ce7dceeacc7 /openssl | |
parent | 741b2e4d84cff8e0482947d223db2aba0f077b5c (diff) | |
download | rust-openssl-d2c54348a58214613f7ed07270801a28ea58ee20.zip |
Add AEAD SRTP protection profiles
Diffstat (limited to 'openssl')
-rw-r--r-- | openssl/src/srtp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/srtp.rs b/openssl/src/srtp.rs index aef793c8..b5e38b7b 100644 --- a/openssl/src/srtp.rs +++ b/openssl/src/srtp.rs @@ -44,6 +44,10 @@ impl SrtpProfileId { pub const SRTP_AES128_F8_SHA1_32: SrtpProfileId = SrtpProfileId(ffi::SRTP_AES128_F8_SHA1_32); pub const SRTP_NULL_SHA1_80: SrtpProfileId = SrtpProfileId(ffi::SRTP_NULL_SHA1_80); pub const SRTP_NULL_SHA1_32: SrtpProfileId = SrtpProfileId(ffi::SRTP_NULL_SHA1_32); + #[cfg(ossl110)] + pub const SRTP_AEAD_AES_128_GCM: SrtpProfileId = SrtpProfileId(ffi::SRTP_AEAD_AES_128_GCM); + #[cfg(ossl110)] + pub const SRTP_AEAD_AES_256_GCM: SrtpProfileId = SrtpProfileId(ffi::SRTP_AEAD_AES_256_GCM); /// Creates a `SrtpProfileId` from an integer representation. pub fn from_raw(value: c_ulong) -> SrtpProfileId { |