[Asterisk-code-review] res srtp: Add support for libsrtp2.1. (asterisk[13])

Alexander Traud asteriskteam at digium.com
Wed Sep 6 03:19:42 CDT 2017


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/6418


Change subject: res_srtp: Add support for libsrtp2.1.
......................................................................

res_srtp: Add support for libsrtp2.1.

Asterisk is able to use libSRTP 2.0.x. However since libSRTP 2.1.x, the macro
SRTP_AES_ICM got renamed to SRTP_AES_ICM_128. Beside to still compile with
previous versions of libSRTP, this change allows libSRTP 2.1.x as well.

ASTERISK-27253 #close

Change-Id: I2e6eb3c3bc844fee8a624060a2eb6f182dc70315
---
M res/srtp/srtp_compat.h
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/6418/1

diff --git a/res/srtp/srtp_compat.h b/res/srtp/srtp_compat.h
index 4ab39f3..bf42082 100644
--- a/res/srtp/srtp_compat.h
+++ b/res/srtp/srtp_compat.h
@@ -5,7 +5,11 @@
 
 #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 err_status_t srtp_err_status_t

-- 
To view, visit https://gerrit.asterisk.org/6418
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e6eb3c3bc844fee8a624060a2eb6f182dc70315
Gerrit-Change-Number: 6418
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170906/f4870ebf/attachment.html>


More information about the asterisk-code-review mailing list