Skip to contentSkip to conversation

package/open62541: fix OpenSSL build without CHACHA

PATCH New Yegor Yefremov 1 participant 1 message Nov 4

lore
Share & tools
lore
#0 lore raw

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

Fixes 84ab6812ac661e0f4aaf0a2ab00b54ea8f50ae40 ("package/open62541: bump to version 1.5.10")
Assisted-by Claude:claude-opus-5-5
---
 package/open62541/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/open62541/Config.in +1 -0
index 024067f6bb..08081f1673 100644
@@ -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