Skip to content

Commit 62d12a4

Browse files
[nrf toup][nrfconnect] Add kconfig to control X509 usage
Added the CHIP_CRYPTO_USE_X509 kconfig option to enable or disable the x509 certificate processing for nrfconnect devices. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent a706a52 commit 62d12a4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

config/nrfconnect/chip-module/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_EN
161161
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF70)
162162
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_OPENTHREAD)
163163
matter_add_gn_arg_bool ("enable_im_pretty_print" CONFIG_CHIP_IM_PRETTY_PRINT)
164+
matter_add_gn_arg_bool ("chip_crypto_use_x509" CONFIG_CHIP_CRYPTO_USE_X509)
164165

165166
matter_add_gn_arg_bool ("chip_system_config_use_sockets" NOT CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)
166167
matter_add_gn_arg_bool ("chip_system_config_use_openthread_inet_endpoints" CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)

config/nrfconnect/chip-module/Kconfig.features

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,12 @@ config CHIP_LAST_FABRIC_REMOVED_ACTION_DELAY
269269
After removing the last fabric the device will wait for the defined time and then perform
270270
an action chosen by the CHIP_LAST_FABRIC_REMOVED_ACTION option. This schedule will allow for
271271
avoiding race conditions before the device removes non-volatile data.
272+
273+
config CHIP_CRYPTO_USE_X509
274+
bool "MbedTLS X.509 certificate support"
275+
default n if CHIP_CRYPTO_PSA
276+
default y if MBEDTLS_X509_LIBRARY # We still need it to be enabled if we use mbedTLS as the crypto backend
277+
help
278+
Enables X.509 certificate support for Matter.
279+
272280
endif # CHIP

src/test_driver/nrfconnect/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ set(CHIP_CFLAGS
4141
-DCHIP_SYSTEM_CONFIG_USE_ZEPHYR_SOCKET_EXTENSIONS=0
4242
-DCHIP_SYSTEM_CONFIG_USE_ZEPHYR_NET_IF=0
4343
-DCHIP_SYSTEM_CONFIG_USE_BSD_IFADDRS=1
44+
-DCHIP_CRYPTO_USE_X509=1
4445
-I${CMAKE_CURRENT_SOURCE_DIR}/main/include
4546
)
4647

0 commit comments

Comments
 (0)