Skip to content

Commit ae043e3

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 thus the includes are not used. Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
1 parent c85a5d5 commit ae043e3

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,6 +28,7 @@
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

3334
#if (MBEDTLS_VERSION_NUMBER >= 0x04000000)
@@ -39,7 +40,6 @@
3940
#include <mbedtls/x509.h>
4041
#include <mbedtls/x509_csr.h>
4142

42-
#if CHIP_CRYPTO_USE_X509
4343
#include <mbedtls/x509_crt.h>
4444
#endif // CHIP_CRYPTO_USE_X509
4545

0 commit comments

Comments
 (0)