Skip to content

Commit

Permalink
[EFR32] Fix missing include of stdio when using snprintf in mbedtls (#…
Browse files Browse the repository at this point in the history
…37763)

Usage of MBEDTLS_PLATFORM_NO_STD_FUNCTIONS means the mbedtls headers are
not including stdio by default, leading to usage of snprintf without prior
declaration in x509_csr.c.
  • Loading branch information
stevew817 authored Feb 25, 2025
1 parent 9c49f28 commit 18dd436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/silabs/efr32/efr32-chip-mbedtls-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
#define MBEDTLS_ECDSA_DETERMINISTIC
#endif // SL_MATTER_PROVISION_FLASH

// If defining snprintf we are also responsible for including its declaration
#include <stdio.h>
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf

#define MBEDTLS_AES_ROM_TABLES
Expand Down

0 comments on commit 18dd436

Please sign in to comment.