package/libopenssl: bump version to 4.0.2
PATCH v5 67/67 package/libopenssl: bump version to 4.0.2
In reply to Bernd Kuhlshttps://openssl-library.org/post/2026-04-14-openssl-40-final-release/
https://github.com/openssl/openssl/blob/openssl-4.0.2/CHANGES.md#openssl-40
The following section results in updates to many packages:
" * ASN1_STRING has been made opaque.
* Signatures of numerous API functions, including those that are related to X509 processing, are changed to include const qualifiers for argument and return types, where suitable."
More infos can be found here:
https://openssl-library.org/post/2026-04-13-asn1_string/
The following section resulted in new legacy options and changes to many packages to maintain bisectability:
" * Removed support for SSLv3. SSLv3 has been deprecated since 2015,
and OpenSSL had it disabled by default since version 1.1.0 (2016).
* Removed support for engines. The no-engine build option and the OPENSSL_NO_ENGINE macro are always present."
More infos can be found here:
https://openssl-library.org/post/2026-04-07-ssl3/index.html
https://openssl-library.org/post/2025-12-18-remove-engines/index.html
--- Config.in.legacy | 36 ++++++++++++++++++++++++++++++ package/apr-util/Config.in | 1 - package/dovecot/Config.in | 1 - package/fluent-bit/Config.in | 1 - package/libcoap/Config.in | 1 - package/libks/Config.in | 1 - package/libldns/libldns.mk | 8 +------ package/libopenssl/Config.in | 34 ---------------------------- package/libopenssl/libopenssl.hash | 4 ++-- package/libopenssl/libopenssl.mk | 18 +-------------- package/libp11/Config.in | 1 - package/libp11/libp11.mk | 3 +-- package/librelp/Config.in | 1 - package/libssh/Config.in | 1 - package/luvi/Config.in | 1 - package/mender/Config.in | 1 - package/mtd/Config.in | 1 - package/openssh/openssh.mk | 8 +------ package/rauc/Config.in | 2 -- package/rauc/rauc.mk | 3 ++- package/softhsm2/Config.in | 1 - package/unbound/Config.in | 1 - package/unbound/unbound.mk | 1 + 23 files changed, 45 insertions(+), 85 deletions(-)
Config.in.legacy +36 -0
@@ -146,6 +146,42 @@ endif comment "Legacy options removed in 2026.11" +config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL + bool "OpenSSL SSL support has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed SSL support + +config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL3 + bool "OpenSSL SSL3 support has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed SSL3 support + +config BR2_PACKAGE_LIBOPENSSL_ENGINES + bool "OpenSSL additional engines has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed engines support + +config BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE + bool "OpenSSL dynamic engine has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed engines support + +config BR2_PACKAGE_LIBOPENSSL_ENABLE_LOADER_ENGINE + bool "OpenSSL 'loader_attic' engine has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed engines support + +config BR2_PACKAGE_LIBOPENSSL_ENABLE_PADLOCK_ENGINE + bool "OpenSSL padlock engine has been removed" + select BR2_LEGACY + help + OpenSSL 4.x removed engines support + config BR2_PACKAGE_QT5KNX bool "qt5knx has been removed" select BR2_LEGACY
package/apr-util/Config.in +0 -1
@@ -6,7 +6,6 @@ config BR2_PACKAGE_APR_UTIL select BR2_PACKAGE_APR select BR2_PACKAGE_EXPAT select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL help The utility library for the apache runtime project
package/dovecot/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_DOVECOT depends on !BR2_STATIC_LIBS depends on BR2_USE_MMU # fork() select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_PCRE2_32 if BR2_PACKAGE_PCRE2 select BR2_PACKAGE_OPENSSL
package/fluent-bit/Config.in +0 -1
@@ -4,7 +4,6 @@ config BR2_PACKAGE_FLUENT_BIT depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_STATIC_LIBS # dlfcn.h select BR2_PACKAGE_C_ARES - select BR2_PACKAGE_LIBOPENSSL_ENGINES # needed by bundled librdkafka select BR2_PACKAGE_LIBYAML select BR2_PACKAGE_MSGPACK_C select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
package/libcoap/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_LIBCOAP bool "libcoap" select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL help libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their
package/libks/Config.in +0 -1
@@ -4,7 +4,6 @@ config BR2_PACKAGE_LIBKS depends on !BR2_STATIC_LIBS # dlfcn.h depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_setname_np() select BR2_PACKAGE_OPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID help
package/libldns/libldns.mk +1 -7
@@ -24,17 +24,11 @@ LIBLDNS_CONF_OPTS = \ --without-pyldnsx ifeq ($(BR2_PACKAGE_LIBOPENSSL),y) -LIBLDNS_CONF_OPTS += --enable-dane-verify +LIBLDNS_CONF_OPTS += --enable-dane-verify --disable-gost else LIBLDNS_CONF_OPTS += --disable-dane-verify endif -ifeq ($(BR2_PACKAGE_LIBOPENSSL_ENGINES),y) -LIBLDNS_CONF_OPTS += --enable-gost -else -LIBLDNS_CONF_OPTS += --disable-gost -endif - ifeq ($(BR2_STATIC_LIBS),y) LIBLDNS_DEPENDENCIES += host-pkgconf # missing -lz breaks configure, add it using pkgconf
package/libopenssl/Config.in +0 -34
@@ -40,11 +40,6 @@ config BR2_PACKAGE_LIBOPENSSL_BIN to the target file system. This is a command line tool for doing various cryptographic stuff. -config BR2_PACKAGE_LIBOPENSSL_ENGINES - bool "openssl additional engines" - help - Install additional encryption engine libraries. - config BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA bool "enable CHACHA" default y
@@ -98,14 +93,6 @@ config BR2_PACKAGE_LIBOPENSSL_ENABLE_BLOWFISH bool "enable BLOWFISH" default y -config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL - bool "enable SSL" - default y - -config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL3 - bool "enable SSL3" - default y - config BR2_PACKAGE_LIBOPENSSL_ENABLE_WEAK_SSL bool "enable WEAK_SSL" default y
@@ -125,10 +112,6 @@ config BR2_PACKAGE_LIBOPENSSL_UNSECURE Enable unit-test crypto-mdebug-backtrace crypto-mdebug autoerrinit mode. -config BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE - bool "enable dynamic engine" - default y - config BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP bool "enable compression" default y
@@ -173,23 +156,6 @@ config BR2_PACKAGE_LIBOPENSSL_ENABLE_ECX Build with ECX support. Disabling this option can be used to disable support for X25519, X448, and EdDSA. -config BR2_PACKAGE_LIBOPENSSL_ENABLE_LOADER_ENGINE - bool "enable 'loader_attic' engine" - default y - depends on BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE - help - Build with 'loader_attic' engine support, which is meant - just for internal OpenSSL testing purposes and supports - loading keys, parameters, certificates, and CRLs from files. - When this engine is used, files with such credentials are - read via this engine. - -config BR2_PACKAGE_LIBOPENSSL_ENABLE_PADLOCK_ENGINE - bool "enable padlock engine" - default y - help - Build the padlock engine. - config BR2_PACKAGE_LIBOPENSSL_ENABLE_MODULE bool "enable modules" default y
package/libopenssl/libopenssl.hash +2 -2
@@ -1,5 +1,5 @@ -# From https://github.com/openssl/openssl/releases/download/openssl-3.6.4/openssl-3.6.4.tar.gz.sha256 -sha256 9bffaa1ad1e07b354c21bd3324ec02fa15579f45a7d0494b3e74bc449b7333ef openssl-3.6.4.tar.gz +# From https://github.com/openssl/openssl/releases/download/openssl-4.0.2/openssl-4.0.2.tar.gz.sha256 +sha256 736b467530f916737b7031310ccb21d8218c6229e61e8e160cd1d3458cd543a8 openssl-4.0.2.tar.gz # License files sha256 7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a LICENSE.txt
package/libopenssl/libopenssl.mk +1 -17
@@ -4,7 +4,7 @@ # ################################################################################ -LIBOPENSSL_VERSION = 3.6.4 +LIBOPENSSL_VERSION = 4.0.2 LIBOPENSSL_SITE = https://github.com/openssl/openssl/releases/download/openssl-$(LIBOPENSSL_VERSION) LIBOPENSSL_SOURCE = openssl-$(LIBOPENSSL_VERSION).tar.gz LIBOPENSSL_LICENSE = Apache-2.0
@@ -80,16 +80,13 @@ define LIBOPENSSL_CONFIGURE_CMDS --openssldir=/etc/ssl \ $(if $(BR2_TOOLCHAIN_HAS_THREADS),threads,no-threads) \ $(if $(BR2_STATIC_LIBS),no-shared,shared) \ - $(if $(BR2_PACKAGE_CRYPTODEV_LINUX),enable-devcryptoeng) \ no-rc5 \ enable-camellia \ no-docs \ no-tests \ no-fuzz-libfuzzer \ no-fuzz-afl \ - no-afalgeng \ $(if $(BR2_PACKAGE_LIBOPENSSL_BIN),,no-apps) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_ENGINES),,no-engine) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA),,no-chacha) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RC2),,no-rc2) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4),,no-rc4) \
@@ -103,21 +100,16 @@ define LIBOPENSSL_CONFIGURE_CMDS $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160),,no-rmd160) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_WHIRLPOOL),,no-whirlpool) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_BLOWFISH),,no-bf) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL),,no-ssl) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL3),,no-ssl3) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_WEAK_SSL),,no-weak-ssl-ciphers) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK),,no-psk) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CAST),,no-cast) \ $(if $(BR2_PACKAGE_LIBOPENSSL_UNSECURE),,no-unit-test no-crypto-mdebug no-autoerrinit) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE),,no-dynamic-engine ) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP),,no-comp) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_ARGON2),,no-argon2) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CACHED_FETCH),,no-cached-fetch) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CMP),,no-cmp) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_THREAD_POOL),,no-thread-pool no-default-thread-pool) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_ECX),,no-ecx) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_LOADER_ENGINE),,no-loadereng) \ - $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_PADLOCK_ENGINE),,no-padlockeng) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_MODULE),,no-module) \ $(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_QUIC),,no-quic) \ $(if $(BR2_PACKAGE_LIBOPENSSL_SECURE_MEMORY),,no-secure-memory) \
@@ -155,7 +147,6 @@ endef define LIBOPENSSL_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install $(RM) -rf $(TARGET_DIR)/usr/lib/ssl - $(RM) -f $(TARGET_DIR)/usr/bin/c_rehash endef # libdl has no business in a static build
@@ -175,12 +166,5 @@ endef LIBOPENSSL_POST_INSTALL_TARGET_HOOKS += LIBOPENSSL_REMOVE_PERL_SCRIPTS endif -ifeq ($(BR2_PACKAGE_LIBOPENSSL_ENGINES),) -define LIBOPENSSL_REMOVE_LIBOPENSSL_ENGINES - $(RM) -rf $(TARGET_DIR)/usr/lib/engines-3 -endef -LIBOPENSSL_POST_INSTALL_TARGET_HOOKS += LIBOPENSSL_REMOVE_LIBOPENSSL_ENGINES -endif - $(eval $(generic-package)) $(eval $(host-generic-package))
package/libp11/Config.in +0 -1
@@ -2,7 +2,6 @@ config BR2_PACKAGE_LIBP11 bool "libp11" depends on !BR2_STATIC_LIBS # dlopen depends on BR2_TOOLCHAIN_HAS_THREADS - select BR2_PACKAGE_LIBOPENSSL_ENGINES select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL help
package/libp11/libp11.mk +1 -2
@@ -11,10 +11,9 @@ LIBP11_INSTALL_STAGING = YES LIBP11_LICENSE = LGPL-2.1+ LIBP11_LICENSE_FILES = COPYING -# pkg-config returns a libcrypto enginesdir prefixed with the sysroot, +# pkg-config returns a libcrypto modulesdir prefixed with the sysroot, # so let's rip it out. LIBP11_CONF_OPTS = \ - --with-enginesdir=`$(PKG_CONFIG_HOST_BINARY) --variable enginesdir libcrypto | xargs readlink -f | sed 's%^$(STAGING_DIR)%%'` \ --with-modulesdir=`$(PKG_CONFIG_HOST_BINARY) --variable modulesdir libcrypto | xargs readlink -f | sed 's%^$(STAGING_DIR)%%'` ifeq ($(BR2_PACKAGE_P11_KIT),y)
package/librelp/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_LIBRELP bool "librelp" depends on BR2_TOOLCHAIN_HAS_THREADS - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL help Reliable Event Logging Protocol library
package/libssh/Config.in +0 -1
@@ -36,7 +36,6 @@ config BR2_PACKAGE_LIBSSH_LIBGCRYPT config BR2_PACKAGE_LIBSSH_OPENSSL bool "openssl" depends on BR2_PACKAGE_OPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL endchoice
package/luvi/Config.in +0 -1
@@ -9,7 +9,6 @@ config BR2_PACKAGE_LUVI select BR2_PACKAGE_LIBUV select BR2_PACKAGE_LUV select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL help A project in-between luv and luvit. The goal of this is to make building luvit and derivatives much easier.
package/mender/Config.in +0 -1
@@ -6,7 +6,6 @@ config BR2_PACKAGE_MENDER select BR2_PACKAGE_HOST_GO select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL - select BR2_PACKAGE_LIBOPENSSL_ENGINES select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 help
package/mtd/Config.in +0 -1
@@ -15,7 +15,6 @@ config BR2_PACKAGE_MTD_JFFS_UTILS config BR2_PACKAGE_MTD_UBIFS_UTILS bool - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID
package/openssh/openssh.mk +1 -7
@@ -23,6 +23,7 @@ OPENSSH_CONF_OPTS = \ --with-pid-dir=/var/run \ --with-default-path=$(BR2_SYSTEM_DEFAULT_PATH) \ $(if $(BR2_PACKAGE_OPENSSH_SANDBOX),--with-sandbox,--without-sandbox) \ + --without-ssl-engine \ --disable-lastlog \ --disable-utmp \ --disable-utmpx \
@@ -55,13 +56,6 @@ ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) OPENSSH_DEPENDENCIES += libxcrypt endif -ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y) -OPENSSH_DEPENDENCIES += cryptodev-linux -OPENSSH_CONF_OPTS += --with-ssl-engine -else -OPENSSH_CONF_OPTS += --without-ssl-engine -endif - ifeq ($(BR2_PACKAGE_AUDIT),y) OPENSSH_DEPENDENCIES += audit OPENSSH_CONF_OPTS += --with-audit=linux
package/rauc/Config.in +0 -2
@@ -6,8 +6,6 @@ config BR2_PACKAGE_RAUC select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL # uses X509_PURPOSE_get_by_id - # uses ENGINE_* API - select BR2_PACKAGE_LIBOPENSSL_ENGINES select BR2_PACKAGE_SQUASHFS # run-time dependency help RAUC is the Robust Auto-Update Controller developed by
package/rauc/rauc.mk +2 -1
@@ -11,7 +11,7 @@ RAUC_LICENSE = LGPL-2.1 RAUC_LICENSE_FILES = COPYING RAUC_CPE_ID_VENDOR = pengutronix RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 -RAUC_CONF_OPTS += -Dtests=false +RAUC_CONF_OPTS += -Dtests=false -Dpkcs11_engine=false ifeq ($(BR2_PACKAGE_RAUC_DBUS),y) RAUC_CONF_OPTS += -Dservice=true
@@ -71,6 +71,7 @@ HOST_RAUC_DEPENDENCIES = \ HOST_RAUC_CONF_OPTS += \ -Djson=enabled \ -Dnetwork=false \ + -Dpkcs11_engine=false \ -Dstreaming=false \ -Dservice=false \ -Dtests=false
package/softhsm2/Config.in +0 -1
@@ -7,7 +7,6 @@ config BR2_PACKAGE_SOFTHSM2 select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES - select BR2_PACKAGE_LIBOPENSSL_ENGINES help SoftHSM is an implementation of a cryptographic store accessible through a PKCS#11 interface. You can use it
package/unbound/Config.in +0 -1
@@ -3,7 +3,6 @@ config BR2_PACKAGE_UNBOUND depends on !BR2_STATIC_LIBS select BR2_PACKAGE_EXPAT select BR2_PACKAGE_LIBEVENT - select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_OPENSSL help Unbound is a validating, recursive, and caching DNS resolver.
package/unbound/unbound.mk +1 -0
@@ -12,6 +12,7 @@ UNBOUND_LICENSE = BSD-3-Clause UNBOUND_LICENSE_FILES = LICENSE UNBOUND_CPE_ID_VENDOR = nlnetlabs UNBOUND_CONF_OPTS = \ + --disable-gost \ --disable-rpath \ --disable-debug \ --with-conf-file=/etc/unbound/unbound.conf \
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot