mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-10 07:10:12 +08:00
Revert "Allow inclusion of entropy.h when it's disabled"
This reverts commit 424210a93c05450a7a8a5b0f6255d788b3f93f74. 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:
parent
7d7c00412f
commit
2ebb1e18e9
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user