mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
res_srtp: Add support for libsrtp2.x on openSUSE.
Since ASTERISK-26976, libSRTP 2.x can be used for sRTP. However, that change added a private header which is not available on openSUSE for example. To remain compatibility with very old libSRTP versions, the affected/missing symbols AES_128_ICM and HMAC_SHA1 are defined manually. ASTERISK-27733 Change-Id: I25c5cb8fa966043d1506ebef449e5a724412b4b6
This commit is contained in:
@@ -5,12 +5,8 @@
|
||||
|
||||
#define crypto_policy_t srtp_crypto_policy_t
|
||||
|
||||
#if defined(SRTP_AES_ICM_128)
|
||||
#define AES_128_ICM SRTP_AES_ICM_128
|
||||
#else
|
||||
#define AES_128_ICM SRTP_AES_ICM
|
||||
#endif
|
||||
#define HMAC_SHA1 SRTP_HMAC_SHA1
|
||||
#define AES_128_ICM 1
|
||||
#define HMAC_SHA1 3
|
||||
|
||||
#define err_status_t srtp_err_status_t
|
||||
#define err_status_ok srtp_err_status_ok
|
||||
|
||||
Reference in New Issue
Block a user