Fix compilation warning

Fix warning in entropy.c caused by injecting seed read & write callbacks
pull/9566/head
Alexander Zilberkant 2019-02-03 16:12:17 +02:00
parent 95906f1062
commit 6e87615dc4
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#ifndef DEFAULT_RANDOM_SEED_H #ifndef DEFAULT_RANDOM_SEED_H
#define DEFAULT_RANDOM_SEED_H #define DEFAULT_RANDOM_SEED_H
#include <stddef.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -17,6 +17,10 @@
* This file is part of mbed TLS (https://tls.mbed.org) * This file is part of mbed TLS (https://tls.mbed.org)
*/ */
#if defined(TARGET_PSA)
#include "default_random_seed.h"
#endif
#if DEVICE_TRNG #if DEVICE_TRNG
#define MBEDTLS_ENTROPY_HARDWARE_ALT #define MBEDTLS_ENTROPY_HARDWARE_ALT
#endif #endif