File 2-res_srtp_aes_256.diff of Package asterisk22

diff -Nurp asterisk-22.1.0-orig/res/res_srtp.c asterisk-22.1.0/res/res_srtp.c
--- asterisk-22.1.0-orig/res/res_srtp.c	2024-11-21 18:18:07.000000000 +0100
+++ asterisk-22.1.0/res/res_srtp.c	2024-12-17 10:49:10.714259206 +0100
@@ -1140,7 +1140,6 @@ static const char *res_sdp_srtp_get_attr
 			 * If you want to enable one of those defines, please, go for
 			 * CFLAGS='-DENABLE_SRTP_AES_GCM' ./configure && sudo make install
 			 */
-				{ len, 0, 30 },
 #if defined(HAVE_SRTP_GCM) && defined(ENABLE_SRTP_AES_GCM)
 				{ AST_SRTP_CRYPTO_TAG_16, 0, AES_128_GCM_KEYSIZE_WSALT },
 #endif
@@ -1153,6 +1152,7 @@ static const char *res_sdp_srtp_get_attr
 #if defined(HAVE_SRTP_192) && defined(ENABLE_SRTP_AES_192)
 				{ len, AST_SRTP_CRYPTO_AES_192, 38 },
 #endif
+				{ len, 0, 30 },
 			};
 			struct ast_sdp_srtp *tmp = srtp;
 			int i;
openSUSE Build Service is sponsored by