Skip to content

Commit 5c9471a

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 5c9471a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/crypto/CHIPCryptoPALmbedTLSCert.cpp

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

31+
32+
#if CHIP_CRYPTO_USE_X509
3133
#include <mbedtls/oid.h>
3234
#include <mbedtls/private/ecp.h>
3335
#include <mbedtls/x509.h>
3436
#include <mbedtls/x509_csr.h>
3537

36-
#if CHIP_CRYPTO_USE_X509
3738
#include <mbedtls/x509_crt.h>
3839
#endif // CHIP_CRYPTO_USE_X509
3940

0 commit comments

Comments
 (0)