mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/mbedtls: bump to version 3.6.3.1
As specified in the 2.28.10 release notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-2.28.10 Mbed TLS 2.28.10 is the last release of the 2.28 LTS and won't receive bug fixes or security fixes anymore. Users are advised to upgrade to a maintained version. So move to 3.6.x, which is the new LTS version: Mbed TLS 3.6 is a long-term support (LTS) branch. It will be supported with bug-fixes and security fixes until at least March 2027. Drop BR2_PACKAGE_MBEDTLS_COMPRESSION and all related references as native zlib support has been entirely removed from mbedtls. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [Peter: add note about 2.28.x / 3.6.x, add Config.in.legacy] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
432aef053e
commit
3481a9643f
@@ -146,6 +146,13 @@ endif
|
|||||||
|
|
||||||
comment "Legacy options removed in 2025.05"
|
comment "Legacy options removed in 2025.05"
|
||||||
|
|
||||||
|
config BR2_PACKAGE_MBEDTLS_COMPRESSION
|
||||||
|
bool "mbedtls compression support removed"
|
||||||
|
select BR2_LEGACY
|
||||||
|
help
|
||||||
|
MbedTLS has dropped support for TLS record-level
|
||||||
|
compression.
|
||||||
|
|
||||||
config BR2_KERNEL_HEADERS_6_13
|
config BR2_KERNEL_HEADERS_6_13
|
||||||
bool "kernel headers version 6.13.x are no longer supported"
|
bool "kernel headers version 6.13.x are no longer supported"
|
||||||
select BR2_LEGACY
|
select BR2_LEGACY
|
||||||
|
|||||||
@@ -17,18 +17,6 @@ config BR2_PACKAGE_MBEDTLS_PROGRAMS
|
|||||||
This option enables the installation and the build of
|
This option enables the installation and the build of
|
||||||
mbed TLS companion programs.
|
mbed TLS companion programs.
|
||||||
|
|
||||||
config BR2_PACKAGE_MBEDTLS_COMPRESSION
|
|
||||||
bool "enable compression support"
|
|
||||||
select BR2_PACKAGE_ZLIB
|
|
||||||
help
|
|
||||||
Enable support for compression of the content data before it
|
|
||||||
enters the secure channel as described in RFC 3749.
|
|
||||||
|
|
||||||
Warning: TLS compression may make you vulnerable to the
|
|
||||||
CRIME attack. You should not enable it unless you know for
|
|
||||||
sure CRIME and similar attacks are not applicable to your
|
|
||||||
particular situation.
|
|
||||||
|
|
||||||
config BR2_PACKAGE_MBEDTLS_DTLS_SRTP
|
config BR2_PACKAGE_MBEDTLS_DTLS_SRTP
|
||||||
bool "enable DTLS-SRTP support"
|
bool "enable DTLS-SRTP support"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# From https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.10:
|
# From https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.6.3.1:
|
||||||
sha256 19e5b81fdac0fe22009b9e2bdcd52d7dcafbf62bc67fc59cf0a76b5b5540d149 mbedtls-2.28.10.tar.bz2
|
sha256 243ed496d5f88a5b3791021be2800aac821b9a4cc16e7134aa413c58b4c20e0c mbedtls-3.6.3.1.tar.bz2
|
||||||
# Locally calculated
|
# Locally calculated
|
||||||
sha256 9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b LICENSE
|
sha256 9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b LICENSE
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MBEDTLS_VERSION = 2.28.10
|
MBEDTLS_VERSION = 3.6.3.1
|
||||||
MBEDTLS_SITE = https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-$(MBEDTLS_VERSION)
|
MBEDTLS_SITE = https://github.com/Mbed-TLS/mbedtls/releases/download/v$(MBEDTLS_VERSION)
|
||||||
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION).tar.bz2
|
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION).tar.bz2
|
||||||
MBEDTLS_CONF_OPTS = \
|
MBEDTLS_CONF_OPTS = \
|
||||||
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -std=c99" \
|
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -std=c99" \
|
||||||
@@ -22,9 +22,9 @@ MBEDTLS_CPE_ID_PRODUCT = mbed_tls
|
|||||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||||
define MBEDTLS_ENABLE_THREADING
|
define MBEDTLS_ENABLE_THREADING
|
||||||
$(SED) "s://#define MBEDTLS_THREADING_C:#define MBEDTLS_THREADING_C:" \
|
$(SED) "s://#define MBEDTLS_THREADING_C:#define MBEDTLS_THREADING_C:" \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
$(SED) "s://#define MBEDTLS_THREADING_PTHREAD:#define MBEDTLS_THREADING_PTHREAD:" \
|
$(SED) "s://#define MBEDTLS_THREADING_PTHREAD:#define MBEDTLS_THREADING_PTHREAD:" \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
endef
|
endef
|
||||||
MBEDTLS_PRE_CONFIGURE_HOOKS += MBEDTLS_ENABLE_THREADING
|
MBEDTLS_PRE_CONFIGURE_HOOKS += MBEDTLS_ENABLE_THREADING
|
||||||
ifeq ($(BR2_STATIC_LIBS),y)
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
@@ -43,25 +43,13 @@ MBEDTLS_CONF_OPTS += \
|
|||||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
|
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
|
|
||||||
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=ON
|
|
||||||
MBEDTLS_DEPENDENCIES += zlib
|
|
||||||
define MBEDTLS_ENABLE_ZLIB
|
|
||||||
$(SED) "s://#define MBEDTLS_ZLIB_SUPPORT:#define MBEDTLS_ZLIB_SUPPORT:" \
|
|
||||||
$(@D)/include/mbedtls/config.h
|
|
||||||
endef
|
|
||||||
MBEDTLS_PRE_CONFIGURE_HOOKS += MBEDTLS_ENABLE_ZLIB
|
|
||||||
else
|
|
||||||
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=OFF
|
|
||||||
endif
|
|
||||||
|
|
||||||
define MBEDTLS_DISABLE_ASM
|
define MBEDTLS_DISABLE_ASM
|
||||||
$(SED) '/^#define MBEDTLS_AESNI_C/d' \
|
$(SED) '/^#define MBEDTLS_AESNI_C/d' \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
$(SED) '/^#define MBEDTLS_HAVE_ASM/d' \
|
$(SED) '/^#define MBEDTLS_HAVE_ASM/d' \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
$(SED) '/^#define MBEDTLS_PADLOCK_C/d' \
|
$(SED) '/^#define MBEDTLS_PADLOCK_C/d' \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# ARM in thumb mode breaks debugging with asm optimizations
|
# ARM in thumb mode breaks debugging with asm optimizations
|
||||||
@@ -76,7 +64,7 @@ endif
|
|||||||
ifeq ($(BR2_PACKAGE_MBEDTLS_DTLS_SRTP),y)
|
ifeq ($(BR2_PACKAGE_MBEDTLS_DTLS_SRTP),y)
|
||||||
define MBEDTLS_ENABLE_DTLS_SRTP
|
define MBEDTLS_ENABLE_DTLS_SRTP
|
||||||
$(SED) "s://#define MBEDTLS_SSL_DTLS_SRTP:#define MBEDTLS_SSL_DTLS_SRTP:" \
|
$(SED) "s://#define MBEDTLS_SSL_DTLS_SRTP:#define MBEDTLS_SSL_DTLS_SRTP:" \
|
||||||
$(@D)/include/mbedtls/config.h
|
$(@D)/include/mbedtls/mbedtls_config.h
|
||||||
endef
|
endef
|
||||||
MBEDTLS_PRE_CONFIGURE_HOOKS += MBEDTLS_ENABLE_DTLS_SRTP
|
MBEDTLS_PRE_CONFIGURE_HOOKS += MBEDTLS_ENABLE_DTLS_SRTP
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -44,9 +44,6 @@ else
|
|||||||
SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
|
SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
|
||||||
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=mbedtls
|
SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=mbedtls
|
||||||
SHAIRPORT_SYNC_CONF_LIBS += -lmbedx509 -lmbedcrypto
|
SHAIRPORT_SYNC_CONF_LIBS += -lmbedx509 -lmbedcrypto
|
||||||
ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
|
|
||||||
SHAIRPORT_SYNC_CONF_LIBS += -lz
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION),y)
|
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION),y)
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|||||||
UACME_CONF_OPTS += --with-gnutls
|
UACME_CONF_OPTS += --with-gnutls
|
||||||
UACME_DEPENDENCIES += gnutls
|
UACME_DEPENDENCIES += gnutls
|
||||||
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
||||||
ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
|
|
||||||
UACME_LIBS += -lz
|
|
||||||
endif
|
|
||||||
UACME_CONF_OPTS += --with-mbedtls
|
UACME_CONF_OPTS += --with-mbedtls
|
||||||
UACME_DEPENDENCIES += mbedtls
|
UACME_DEPENDENCIES += mbedtls
|
||||||
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
|
|||||||
Reference in New Issue
Block a user