package/open62541: fix OpenSSL build without CHACHA
PATCH 1/1 package/open62541: fix OpenSSL build without CHACHA
Since the 1.5 series, the OpenSSL security policies of open62541 (EccNistP256 ChaChaPoly, EccCurve25519, EccCurve448) unconditionally use ChaCha20-Poly1305, so the build fails when libopenssl is built with BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA disabled:
plugins/crypto/openssl/securitypolicy_common.c:2630:36: error: implicit declaration of function 'EVP_chacha20_poly1305'; did you mean 'SN_chacha20_poly1305'? [-Wimplicit-function-declaration]
Select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA, as other packages using ChaCha20 do. libopenssl is already forced by BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL, so no condition is needed.
ECX (X25519, X448) is not needed to build: without it, the default server configuration only logs that the EccCurve25519/EccCurve448 policies could not be added.
This issue has been present since commit 84ab6812ac66 ("package/open62541: bump to version 1.5.10"), which updated from 1.3.15, which didn't use ChaCha20-Poly1305. It therefore only affects master.
Fixes:
https://autobuild.buildroot.org/results/f33c46fda88dae2c217082e35593c20208af0111
--- package/open62541/Config.in | 1 + 1 file changed, 1 insertion(+)
package/open62541/Config.in +1 -0
@@ -24,6 +24,7 @@ config BR2_PACKAGE_OPEN62541_ENCRYPTION_OPENSSL bool "openssl" select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL + select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA endchoice
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot