mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-02 09:33:20 +03:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user