Commit d3e557cf authored by timothy's avatar timothy
Browse files

Export SRTP_AEAD_AES_128_GCM and SRTP_AEAD_AES_256_GCM to BoringSSL

parent 26d4032c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -46,10 +46,12 @@ impl SrtpProfileId {
        SrtpProfileId(ffi::SRTP_AES128_F8_SHA1_32 as c_ulong);
    pub const SRTP_NULL_SHA1_80: SrtpProfileId = SrtpProfileId(ffi::SRTP_NULL_SHA1_80 as c_ulong);
    pub const SRTP_NULL_SHA1_32: SrtpProfileId = SrtpProfileId(ffi::SRTP_NULL_SHA1_32 as c_ulong);
    #[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);
    #[cfg(any(boringssl, ossl110))]
    pub const SRTP_AEAD_AES_128_GCM: SrtpProfileId =
        SrtpProfileId(ffi::SRTP_AEAD_AES_128_GCM as c_ulong);
    #[cfg(any(boringssl, ossl110))]
    pub const SRTP_AEAD_AES_256_GCM: SrtpProfileId =
        SrtpProfileId(ffi::SRTP_AEAD_AES_256_GCM as c_ulong);

    /// Creates a `SrtpProfileId` from an integer representation.
    pub fn from_raw(value: c_ulong) -> SrtpProfileId {