Adapt source file names from Mbed TLS 3.0 to 2.27
* There's no compat-2.x.h in Mbed TLS 2.x, but there's a compat-1.3.h which
similarly needs to be excluded.
* mbedtls_config.h is called config.h.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py
index 737b3df..bda34d1 100755
--- a/tests/scripts/check_names.py
+++ b/tests/scripts/check_names.py
@@ -225,7 +225,7 @@
# Globally excluded filenames.
# Note that "*" can match directory separators in exclude lists.
- self.excluded_files = ["*/bn_mul", "*/compat-2.x.h"]
+ self.excluded_files = ["*/bn_mul", "*/compat-1.3.h"]
@staticmethod
def check_repo_path():
@@ -580,8 +580,8 @@
# Back up the config and atomically compile with the full configratuion.
shutil.copy(
- "include/mbedtls/mbedtls_config.h",
- "include/mbedtls/mbedtls_config.h.bak"
+ "include/mbedtls/config.h",
+ "include/mbedtls/config.h.bak"
)
try:
# Use check=True in all subprocess calls so that failures are raised
@@ -628,8 +628,8 @@
# Put back the original config regardless of there being errors.
# Works also for keyboard interrupts.
shutil.move(
- "include/mbedtls/mbedtls_config.h.bak",
- "include/mbedtls/mbedtls_config.h"
+ "include/mbedtls/config.h.bak",
+ "include/mbedtls/config.h"
)
return symbols