Revert "Allow inclusion of entropy.h when it's disabled"

This reverts commit 424210a93c.

This change was not safe enough for an LTS branch, as it might break code
that assumes it's safe to declare an object of type mbedtls_entropy_context
even when MBEDTLS_ENTROPY_C is undefined.
This commit is contained in:
Manuel Pégourié-Gonnard 2020-06-18 11:59:57 +02:00
parent 7d7c00412f
commit 2ebb1e18e9

View File

@ -86,8 +86,6 @@
#define MBEDTLS_ENTROPY_SOURCE_STRONG 1 /**< Entropy source is strong */
#define MBEDTLS_ENTROPY_SOURCE_WEAK 0 /**< Entropy source is weak */
#if defined(MBEDTLS_ENTROPY_C)
#ifdef __cplusplus
extern "C" {
#endif
@ -288,6 +286,4 @@ int mbedtls_entropy_source_self_test( int verbose );
}
#endif
#endif /* MBEDTLS_ENTROPY_C */
#endif /* entropy.h */