mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-27 12:15:33 +03:00
Generate checks for bad options in the config file
Just a proof-of-concept for now. Interesting checks will come later. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
21
scripts/generate_config_checks.py
Executable file
21
scripts/generate_config_checks.py
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""Generate C preprocessor code to check for bad configurations.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import framework_scripts_path # pylint: disable=unused-import
|
||||||
|
from mbedtls_framework.config_checks_generator import * \
|
||||||
|
#pylint: disable=wildcard-import,unused-wildcard-import
|
||||||
|
|
||||||
|
MBEDTLS_CHECKS = BranchData(
|
||||||
|
header_directory='library',
|
||||||
|
header_prefix='mbedtls_',
|
||||||
|
project_cpp_prefix='MBEDTLS',
|
||||||
|
checkers=[
|
||||||
|
Removed('MBEDTLS_KEY_EXCHANGE_RSA_ENABLED', 'Mbed TLS 4.0'),
|
||||||
|
Removed('MBEDTLS_PADLOCK_C', 'Mbed TLS 4.0'),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main(MBEDTLS_CHECKS)
|
||||||
Reference in New Issue
Block a user