summaryrefslogtreecommitdiff
path: root/res/srtp
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2017-10-18 10:30:25 +0200
committerAlexander Traud <pabstraud@compuserve.com>2017-10-18 03:34:56 -0500
commit95b45d1c46b35232ee0b9bdb3135b080c164c7c6 (patch)
tree98bf5e8af0fb1fd570aa3d8fc94f8d01a6cba83f /res/srtp
parent214a40b6b5cbc5a5184e8952ea6a9cab21502835 (diff)
res_srtp: Add support for libsrtp2 with AES-GCM.
Beside allowing AES-GCM again, this adds AES-192 again. ASTERISK-27356 Change-Id: Ia97a435faf26300335d9552fa676b5d17e5f7233
Diffstat (limited to 'res/srtp')
-rw-r--r--res/srtp/srtp_compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/srtp/srtp_compat.h b/res/srtp/srtp_compat.h
index 56ffca1cc..dbd8ddee0 100644
--- a/res/srtp/srtp_compat.h
+++ b/res/srtp/srtp_compat.h
@@ -16,6 +16,18 @@
#define crypto_policy_set_aes_gcm_128_8_auth srtp_crypto_policy_set_aes_gcm_128_8_auth
#define crypto_policy_set_aes_gcm_256_8_auth srtp_crypto_policy_set_aes_gcm_256_8_auth
+#if defined(SRTP_AES_GCM_128_KEY_LEN_WSALT)
+#define AES_128_GCM_KEYSIZE_WSALT SRTP_AES_GCM_128_KEY_LEN_WSALT
+#else
+#define AES_128_GCM_KEYSIZE_WSALT SRTP_AES_128_GCM_KEYSIZE_WSALT
+#endif
+
+#if defined(SRTP_AES_GCM_256_KEY_LEN_WSALT)
+#define AES_256_GCM_KEYSIZE_WSALT SRTP_AES_GCM_256_KEY_LEN_WSALT
+#else
+#define AES_256_GCM_KEYSIZE_WSALT SRTP_AES_256_GCM_KEYSIZE_WSALT
+#endif
+
#define err_status_t srtp_err_status_t
#define err_status_ok srtp_err_status_ok
#define err_status_fail srtp_err_status_fail