mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-21 23:05:55 +03:00
Macros to indicate the finalization level of the configuration
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
fef877f51f
commit
d33eb55cce
@ -101,6 +101,9 @@
|
|||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef MBEDTLS_CONFIG_FILES_READ
|
||||||
|
#undef MBEDTLS_CONFIG_IS_FINALIZED
|
||||||
|
|
||||||
/* X.509, TLS and non-PSA crypto configuration */
|
/* X.509, TLS and non-PSA crypto configuration */
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/mbedtls_config.h"
|
#include "mbedtls/mbedtls_config.h"
|
||||||
@ -135,6 +138,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif /* defined(MBEDTLS_PSA_CRYPTO_CONFIG) */
|
#endif /* defined(MBEDTLS_PSA_CRYPTO_CONFIG) */
|
||||||
|
|
||||||
|
/* Indicate that all configuration files have been read.
|
||||||
|
* It is now time to adjust the configuration (follow through on dependencies,
|
||||||
|
* make PSA and legacy crypto consistent, etc.).
|
||||||
|
*/
|
||||||
|
#define MBEDTLS_CONFIG_FILES_READ
|
||||||
|
|
||||||
/* Auto-enable MBEDTLS_CTR_DRBG_USE_128_BIT_KEY if
|
/* Auto-enable MBEDTLS_CTR_DRBG_USE_128_BIT_KEY if
|
||||||
* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH and MBEDTLS_CTR_DRBG_C defined
|
* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH and MBEDTLS_CTR_DRBG_C defined
|
||||||
* to ensure a 128-bit key size in CTR_DRBG.
|
* to ensure a 128-bit key size in CTR_DRBG.
|
||||||
@ -169,8 +178,13 @@
|
|||||||
|
|
||||||
#include "mbedtls/config_adjust_ssl.h"
|
#include "mbedtls/config_adjust_ssl.h"
|
||||||
|
|
||||||
/* Make sure all configuration symbols are set before including check_config.h,
|
/* Indicate that all configuration symbols are set,
|
||||||
* even the ones that are calculated programmatically. */
|
* even the ones that are calculated programmatically.
|
||||||
|
* It is now safe to query the configuration (to check it, to size buffers,
|
||||||
|
* etc.).
|
||||||
|
*/
|
||||||
|
#define MBEDTLS_CONFIG_IS_FINALIZED
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
#include "mbedtls/check_config.h"
|
||||||
|
|
||||||
#endif /* MBEDTLS_BUILD_INFO_H */
|
#endif /* MBEDTLS_BUILD_INFO_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user