mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 06:45:37 +01: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:
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…
Reference in New Issue
Block a user