mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/mbedtls: add configurable DTLS-SRTP support
Add a new option to have MbedTLS builds that support DTLS-SRTP. We can only enable the support, it's disabled by default. Signed-off-by: Dmitry Ilyin <dima@doty.ru> [yann.morin.1998@free.fr: - rename variable - fix variable name in .mk - drop unnecessary ref to AWS library ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
7cb17577d4
commit
04d3aef680
@@ -29,4 +29,10 @@ config BR2_PACKAGE_MBEDTLS_COMPRESSION
|
|||||||
sure CRIME and similar attacks are not applicable to your
|
sure CRIME and similar attacks are not applicable to your
|
||||||
particular situation.
|
particular situation.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_MBEDTLS_DTLS_SRTP
|
||||||
|
bool "enable DTLS-SRTP support"
|
||||||
|
help
|
||||||
|
Enable support for negotiation of DTLS-SRTP (RFC 5764)
|
||||||
|
through the use_srtp extension.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -72,4 +72,12 @@ else ifeq ($(BR2_microblaze)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
|
|||||||
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
|
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_MBEDTLS_DTLS_SRTP),y)
|
||||||
|
define MBEDTLS_ENABLE_DTLS_SRTP
|
||||||
|
$(SED) "s://#define MBEDTLS_SSL_DTLS_SRTP:#define MBEDTLS_SSL_DTLS_SRTP:" \
|
||||||
|
$(@D)/include/mbedtls/config.h
|
||||||
|
endef
|
||||||
|
MBEDTLS_POST_PATCH_HOOKS += MBEDTLS_ENABLE_DTLS_SRTP
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user