From b3dc82284682d4de342114b52dff07b7a51a3d48 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 1 Jun 2016 16:34:25 +0100 Subject: [PATCH] Properly gate NV_SEED additions in test suite --- tests/suites/test_suite_entropy.function | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/suites/test_suite_entropy.function b/tests/suites/test_suite_entropy.function index 999b5f667..82f83325d 100644 --- a/tests/suites/test_suite_entropy.function +++ b/tests/suites/test_suite_entropy.function @@ -35,6 +35,7 @@ static int entropy_dummy_source( void *data, unsigned char *output, return( 0 ); } +#if defined(MBEDTLS_ENTROPY_NV_SEED) /* * Ability to clear entropy sources to allow testing with just predefined * entropy sources. This function or tests depending on it might break if there @@ -114,6 +115,7 @@ static int read_nv_seed( unsigned char *buf, size_t buf_len ) return( 0 ); } +#endif /* MBEDTLS_ENTROPY_NV_SEED */ /* END_HEADER */ /* BEGIN_DEPENDENCIES