mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 04:20:12 +00:00
These have been moved to build_info.h. Update the documentation to reflect this. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
1.1 KiB
1.1 KiB
Introduce a level of indirection and versioning in the config files
config.h
was split into build_info.h
and mbedtls_config.h
.
- In code, use
#include <mbedtls/build_info.h>
. Don't includembedtls/config.h
and don't refer toMBEDTLS_CONFIG_FILE
. - In build tools, edit
mbedtls_config.h
, or editMBEDTLS_CONFIG_FILE
as before. - If you had a tool that parsed the library version from
include/mbedtls/version.h
, this has moved toinclude/mbedtls/build_info.h
. From C code, both headers now define theMBEDTLS_VERSION_xxx
macros.
Also, if you have a custom configuration file:
- Don't include
check_config.h
orconfig_psa.h
anymore. - Don't define
MBEDTLS_CONFIG_H
anymore.
A config file version symbol, MBEDTLS_CONFIG_VERSION
was introduced.
Defining it to a particular value will ensure that Mbed TLS interprets
the config file in a way that's compatible with the config file format
used by the Mbed TLS release whose MBEDTLS_VERSION_NUMBER
has the same
value.
The only value supported by Mbed TLS 3.0.0 is 0x03000000
.