res_srtp: Add menuselect options to enable AES_192, AES_256 and AES_GCM

UserNote: Options are now available in the menuselect "Resource Modules"
category that allow you to enable the AES_192, AES_256 and AES_GCM
cipher suites in res_srtp. Of course, libsrtp and OpenSSL must support
them but modern versions do.  Previously, the only way to enable them was
to set the CFLAGS environment variable when running ./configure.
The default setting is to disable them preserving existing behavior.
This commit is contained in:
George Joseph
2025-08-05 08:10:29 -06:00
parent 9d4674d93d
commit 581e4a23a8
3 changed files with 44 additions and 0 deletions

View File

@@ -35,6 +35,32 @@
<support_level>core</support_level>
***/
/*** MAKEOPTS
<category name="MENUSELECT_RES" displayname="Resource Modules">
<member name="ENABLE_SRTP_AES_192" displayname="Enable AES 192 cipher suite in res_srtp" touch_on_change="res/res_srtp.c">
<defaultenabled>no</defaultenabled>
<support_level>option</support_level>
<depend>srtp</depend>
<depend>res_srtp</depend>
<depend>HAVE_SRTP_192</depend>
</member>
<member name="ENABLE_SRTP_AES_256" displayname="Enable AES 256 cipher suite in res_srtp" touch_on_change="res/res_srtp.c">
<defaultenabled>no</defaultenabled>
<support_level>option</support_level>
<depend>srtp</depend>
<depend>res_srtp</depend>
<depend>HAVE_SRTP_256</depend>
</member>
<member name="ENABLE_SRTP_AES_GCM" displayname="Enable AES GCM cipher suite in res_srtp" touch_on_change="res/res_srtp.c">
<defaultenabled>no</defaultenabled>
<support_level>option</support_level>
<depend>srtp</depend>
<depend>res_srtp</depend>
<depend>HAVE_SRTP_GCM</depend>
</member>
</category>
***/
/* See https://docs.asterisk.org/Deployment/Secure-Calling/ */
#include "asterisk.h" /* for NULL, size_t, memcpy, etc */