Skip to content

Commit 6e87615

Browse files
committed
Fix compilation warning
Fix warning in entropy.c caused by injecting seed read & write callbacks
1 parent 95906f1 commit 6e87615

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

features/mbedtls/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/inc/default_random_seed.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#ifndef DEFAULT_RANDOM_SEED_H
44
#define DEFAULT_RANDOM_SEED_H
55

6+
#include <stddef.h>
7+
68
#ifdef __cplusplus
79
extern "C" {
810
#endif

features/mbedtls/platform/inc/platform_mbed.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
* This file is part of mbed TLS (https://tls.mbed.org)
1818
*/
1919

20+
#if defined(TARGET_PSA)
21+
#include "default_random_seed.h"
22+
#endif
23+
2024
#if DEVICE_TRNG
2125
#define MBEDTLS_ENTROPY_HARDWARE_ALT
2226
#endif

0 commit comments

Comments
 (0)