Gilles Peskine | 3374f6e | 2025-07-31 21:09:39 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | """Generate C preprocessor code to check for bad configurations. |
| 4 | """ |
| 5 | |
| 6 | import framework_scripts_path # pylint: disable=unused-import |
| 7 | from mbedtls_framework.config_checks_generator import * \ |
| 8 | #pylint: disable=wildcard-import,unused-wildcard-import |
| 9 | |
| 10 | MBEDTLS_CHECKS = BranchData( |
| 11 | header_directory='library', |
| 12 | header_prefix='mbedtls_', |
| 13 | project_cpp_prefix='MBEDTLS', |
| 14 | checkers=[ |
| 15 | Removed('MBEDTLS_KEY_EXCHANGE_RSA_ENABLED', 'Mbed TLS 4.0'), |
| 16 | Removed('MBEDTLS_PADLOCK_C', 'Mbed TLS 4.0'), |
| 17 | ], |
| 18 | ) |
| 19 | |
| 20 | if __name__ == '__main__': |
| 21 | main(MBEDTLS_CHECKS) |