From beb018a3ac5e5ebd4737c8218eeac4762dd53ce5 Mon Sep 17 00:00:00 2001 From: Johannes Kauffmann Date: Tue, 9 May 2023 11:35:58 +0200 Subject: open62541: allow overriding encryption providers Without "encryption" PACKAGECONFIG, the option UA_ENABLE_ENCRYPTION=OFF is passed, which disables encryption support altogether and makes it impossible to override the encryption provider. Since no encryption support is already the default, we don't have to specify anthing to disable encryption. Additionally, explicitly specify MbedTLS as the encryption provider; this is the preferred way to enable any one of the three supported providers (LibreSSL, OpenSSL or MbedTLS). The current method prints a deprecation warning: CMake Deprecation Warning at CMakeLists.txt:200 (message): Set UA_ENABLE_ENCRYPTION to the desired encryption library. Signed-off-by: Johannes Kauffmann Signed-off-by: Khem Raj --- meta-networking/recipes-protocols/opcua/open62541_1.3.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-networking') diff --git a/meta-networking/recipes-protocols/opcua/open62541_1.3.3.bb b/meta-networking/recipes-protocols/opcua/open62541_1.3.3.bb index 5af856ad34..abe38003d6 100644 --- a/meta-networking/recipes-protocols/opcua/open62541_1.3.3.bb +++ b/meta-networking/recipes-protocols/opcua/open62541_1.3.3.bb @@ -33,7 +33,7 @@ EXTRA_OECMAKE += "\ PACKAGECONFIG ?= "encryption pubsub pubsub-eth" PACKAGECONFIG[amalgamation] = "-DUA_ENABLE_AMALGAMATION=ON, -DUA_ENABLE_AMALGAMATION=OFF" -PACKAGECONFIG[encryption] = "-DUA_ENABLE_ENCRYPTION=ON, -DUA_ENABLE_ENCRYPTION=OFF, mbedtls" +PACKAGECONFIG[encryption] = "-DUA_ENABLE_ENCRYPTION=MBEDTLS, , mbedtls" PACKAGECONFIG[pubsub] = "-DUA_ENABLE_PUBSUB=ON, -DUA_ENABLE_PUBSUB=OFF" PACKAGECONFIG[pubsub-eth] = "-DUA_ENABLE_PUBSUB_ETH_UADP=ON, -DUA_ENABLE_PUBSUB_ETH_UADP=OFF" -- cgit v1.2.3-54-g00ecf