diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-01-21 09:49:24 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-01-21 09:49:24 +0100 |
commit | abc851bdbc63d9c10d995913c03bcc94b0eaf75f (patch) | |
tree | 06a1e76c160be07129b1861144f1d946e661b1a9 /pcr/asterisk/libSRTP_2_x_x+GCM.patch | |
parent | c2ea5e49dfa974e78f2f59fe2fbda810af5f88fb (diff) | |
download | abslibre-abc851bdbc63d9c10d995913c03bcc94b0eaf75f.tar.gz abslibre-abc851bdbc63d9c10d995913c03bcc94b0eaf75f.tar.bz2 abslibre-abc851bdbc63d9c10d995913c03bcc94b0eaf75f.zip |
pcr/asterisk: updated to 15.1.0
Diffstat (limited to 'pcr/asterisk/libSRTP_2_x_x+GCM.patch')
-rw-r--r-- | pcr/asterisk/libSRTP_2_x_x+GCM.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/asterisk/libSRTP_2_x_x+GCM.patch b/pcr/asterisk/libSRTP_2_x_x+GCM.patch new file mode 100644 index 000000000..b8f7abffc --- /dev/null +++ b/pcr/asterisk/libSRTP_2_x_x+GCM.patch @@ -0,0 +1,31 @@ +--- configure.ac (Asterisk 15.1.0) ++++ configure.ac (working copy) +@@ -2523,6 +2523,7 @@ + if test "x$PBX_SRTP" = x1; + then + AST_EXT_LIB_CHECK([SRTP_256], [srtp2], [srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80]) ++ AST_EXT_LIB_CHECK([SRTP_192], [srtp2], [srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80]) + AST_EXT_LIB_CHECK([SRTP_GCM], [srtp2], [srtp_crypto_policy_set_aes_gcm_128_8_auth]) + AST_EXT_LIB_CHECK([SRTP_SHUTDOWN], [srtp2], [srtp_shutdown], [srtp2/srtp.h]) + +--- res/srtp/srtp_compat.h (Asterisk 15.1.0) ++++ res/srtp/srtp_compat.h (working copy) +@@ -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 |