mirror of
https://github.com/cuberite/polarssl.git
synced 2025-12-08 23:08:05 -05: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.hand don't refer toMBEDTLS_CONFIG_FILE. - In build tools, edit
mbedtls_config.h, or editMBEDTLS_CONFIG_FILEas 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_xxxmacros.
Also, if you have a custom configuration file:
- Don't include
check_config.horconfig_psa.hanymore. - Don't define
MBEDTLS_CONFIG_Hanymore.
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.