mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 22:18:08 +00:00
Add MBEDTLS_FS_IO guard on default NV seed defines in platform.h
The default implementation won't work without MBEDTLS_FS_IO, so leave undefined otherwise.
This commit is contained in:
parent
7da307105c
commit
a9c321cef5
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,7 @@ extern "C" {
|
||||||
#if !defined(MBEDTLS_PLATFORM_STD_EXIT_FAILURE)
|
#if !defined(MBEDTLS_PLATFORM_STD_EXIT_FAILURE)
|
||||||
#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE EXIT_FAILURE /**< Default exit value to use */
|
#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE EXIT_FAILURE /**< Default exit value to use */
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(MBEDTLS_FS_IO)
|
||||||
#if !defined(MBEDTLS_PLATFORM_STD_NV_SEED_READ)
|
#if !defined(MBEDTLS_PLATFORM_STD_NV_SEED_READ)
|
||||||
#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read
|
#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read
|
||||||
#endif
|
#endif
|
||||||
|
@ -85,6 +86,7 @@ extern "C" {
|
||||||
#if !defined(MBEDTLS_PLATFORM_STD_NV_SEED_FILE)
|
#if !defined(MBEDTLS_PLATFORM_STD_NV_SEED_FILE)
|
||||||
#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile"
|
#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile"
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* MBEDTLS_FS_IO */
|
||||||
#else /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
|
#else /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
|
||||||
#if defined(MBEDTLS_PLATFORM_STD_MEM_HDR)
|
#if defined(MBEDTLS_PLATFORM_STD_MEM_HDR)
|
||||||
#include MBEDTLS_PLATFORM_STD_MEM_HDR
|
#include MBEDTLS_PLATFORM_STD_MEM_HDR
|
||||||
|
|
Loading…
Reference in a new issue