package/open62541: add encryption support
For the OpenSSL case, only OpenSSL is supported, as open62541 does not build with LibreSSL. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
f29aecc64d
commit
1ebd10fd23
package/open62541
@ -7,6 +7,26 @@ config BR2_PACKAGE_OPEN62541
|
||||
|
||||
if BR2_PACKAGE_OPEN62541
|
||||
|
||||
choice
|
||||
prompt "encryption"
|
||||
default BR2_PACKAGE_OPEN62541_ENCRYPTION_NONE
|
||||
help
|
||||
Encryption support
|
||||
|
||||
config BR2_PACKAGE_OPEN62541_ENCRYPTION_NONE
|
||||
bool "none"
|
||||
|
||||
config BR2_PACKAGE_OPEN62541_ENCRYPTION_MBEDTLS
|
||||
bool "mbedtls"
|
||||
select BR2_PACKAGE_MBEDTLS
|
||||
|
||||
config BR2_PACKAGE_OPEN62541_ENCRYPTION_OPENSSL
|
||||
bool "openssl"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
prompt "namespace zero nodes"
|
||||
help
|
||||
|
@ -23,6 +23,16 @@ OPEN62541_CONF_OPTS = \
|
||||
-DUA_ENABLE_HARDENING=OFF \
|
||||
-DUA_FORCE_WERROR=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPEN62541_ENCRYPTION_MBEDTLS),y)
|
||||
OPEN62541_DEPENDENCIES += mbedtls
|
||||
OPEN62541_CONF_OPTS += -DUA_ENABLE_ENCRYPTION=MBEDTLS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPEN62541_ENCRYPTION_OPENSSL),y)
|
||||
OPEN62541_DEPENDENCIES += openssl
|
||||
OPEN62541_CONF_OPTS += -DUA_ENABLE_ENCRYPTION=OPENSSL
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_MINIMAL),y)
|
||||
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=MINIMAL
|
||||
else ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_REDUCED),y)
|
||||
|
Loading…
Reference in New Issue
Block a user