mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 05:45:38 +01:00
Small DTLS 1.2 config: timing is a default entropy source
Since MBEDTLS_TIMING_C is enabled, mbedtls_entropy_init() adds the weak source MBEDTLS_ENTROPY_MAX_SOURCES(). With mbedtls_platform_entropy_poll(), this makes two sources. The unit tests need room for a third source. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
8c5c2930db
commit
83f7108f3d
@ -89,10 +89,10 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* You should adjust this to the exact number of sources you're using: default
|
* You should adjust this to the exact number of sources you're using: default
|
||||||
* is the "platform_entropy_poll" source, but you may want to add other ones
|
* is the "platform_entropy_poll" source plus a weak clock source, but you may
|
||||||
* Minimum is 2 for the entropy test suite.
|
* want to add other ones. Minimum is 3 for the entropy test suite.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_ENTROPY_MAX_SOURCES 2
|
#define MBEDTLS_ENTROPY_MAX_SOURCES 3
|
||||||
|
|
||||||
/* These defines are present so that the config modifying scripts can enable
|
/* These defines are present so that the config modifying scripts can enable
|
||||||
* them during tests/scripts/test-ref-configs.pl */
|
* them during tests/scripts/test-ref-configs.pl */
|
||||||
|
Loading…
Reference in New Issue
Block a user