Skip to content

Commit bba025b

Browse files
Vge0rgetomi-font
authored andcommitted
[nrf noup] crypto: Guard unused includes
Guard all the mbedTLS related includes based on the CHIP_CRYPTO_USE_X509 define, since when this is not defined all the functions in the file seem to just return an error of not supported and so the includes are not used. Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
1 parent 15d4303 commit bba025b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/crypto/CHIPCryptoPALmbedTLSCert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
#include <lib/support/CodeUtils.h>
2929
#include <lib/support/SafeInt.h>
3030

31+
#if CHIP_CRYPTO_USE_X509
3132
#include <mbedtls/oid.h>
3233
#include <mbedtls/private/ecp.h>
3334
#include <mbedtls/x509.h>
3435
#include <mbedtls/x509_csr.h>
3536

36-
#if CHIP_CRYPTO_USE_X509
3737
#include <mbedtls/x509_crt.h>
3838
#endif // CHIP_CRYPTO_USE_X509
3939

0 commit comments

Comments
 (0)