Building Thread CLI sample with CONFIG_OPENTHREAD_SOURCES=y delivers warnings an crypto fails

Building Thread CLI sample with CONFIG_OPENTHREAD_SOURCES=y delivers many warnings:

All are related to MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT and CONFIG_MBEDTLS_CMAC_ALT not defined.

/home/<name>/ncs/v3.1.1/modules/crypto/mbedtls/include/mbedtls/ssl.h:659:5: warning: "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT" is not defined, evaluates to 0 [-Wundef]
  659 | #if MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT == 0

/home/<name>/source/cli/build_1/cli/generated/library_nrf_security_psa/nrf-config.h:175:5: warning: "CONFIG_MBEDTLS_CMAC_ALT" is not defined, evaluates to 0 [-Wundef]
  175 | #if CONFIG_MBEDTLS_CMAC_ALT

The test has been done with SDK v3.1.1.
No further changes made to the sample besides setting  CONFIG_OPENTHREAD_SOURCES=y  in prj.conf.


In another project with more changes it was discovered that CMAC calculation does not work properly when  CONFIG_OPENTHREAD_SOURCES has been used.
So the warning seems to be relevant.

Parents Reply Children
No Data
Related