Bence Szépkúti | 90b79ab | 2021-06-04 00:19:53 +0200 | [diff] [blame] | 1 | Introduce a level of indirection and versioning in the config files |
| 2 | ------------------------------------------------------------------- |
| 3 | |
| 4 | `config.h` was split into `build_info.h` and `mbedtls_config.h`. |
| 5 | `build_info.h` is intended to be included from C code directly, while |
Bence Szépkúti | 8d9132f | 2021-06-16 09:10:41 +0200 | [diff] [blame] | 6 | `mbedtls_config.h` is intended to be edited by end users wishing to |
Bence Szépkúti | 90b79ab | 2021-06-04 00:19:53 +0200 | [diff] [blame] | 7 | change the build configuration, and should generally only be included from |
| 8 | `build_info.h`. This is because all the preprocessor logic has been moved |
| 9 | into `build_info.h`, including the handling of the `MBEDTLS_CONFIG_FILE` |
| 10 | macro. |
| 11 | |
Bence Szépkúti | 60c8634 | 2021-06-22 10:03:02 +0200 | [diff] [blame^] | 12 | A config file version symbol, `MBEDTLS_CONFIG_VERSION` was introduced. |
| 13 | Defining it to a particular value will ensure that mbedtls interprets |
Bence Szépkúti | 36da4cc | 2021-06-21 17:14:41 +0200 | [diff] [blame] | 14 | the config file in a way that's compatible with the config file format |
Bence Szépkúti | 60c8634 | 2021-06-22 10:03:02 +0200 | [diff] [blame^] | 15 | used by the mbedtls release whose `MBEDTLS_VERSION_NUMBER` has the same |
| 16 | value. |
| 17 | The only value supported by mbedtls 3.0.0 is `0x03000000`. |