From e67a987c6311ac94052bd94332326b7eef68f3f9 Mon Sep 17 00:00:00 2001 From: Mathis Marion Date: Mon, 15 Jun 2026 11:07:43 +0200 Subject: [PATCH] Fix generate_features.pl for X.509 section Commit 9d51a54ba2 ("Updates generate_features.pl for new sections.") added the X.509 section to the filter but the regex does not support the dot character. Signed-off-by: Mathis Marion --- ChangeLog.d/fix-x509-check-features.txt | 3 +++ scripts/generate_features.pl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 ChangeLog.d/fix-x509-check-features.txt diff --git a/ChangeLog.d/fix-x509-check-features.txt b/ChangeLog.d/fix-x509-check-features.txt new file mode 100644 index 0000000000..be567888e6 --- /dev/null +++ b/ChangeLog.d/fix-x509-check-features.txt @@ -0,0 +1,3 @@ +Bugfix + * Fix a `mbedtls_version_check_features()` regression which caused all + features under the X.509 configuration section to be considered disabled. diff --git a/scripts/generate_features.pl b/scripts/generate_features.pl index 5e50ca6a4e..7c6d80cb47 100755 --- a/scripts/generate_features.pl +++ b/scripts/generate_features.pl @@ -65,7 +65,7 @@ while (my $line = ) } if (!$in_section) { - my ($section_name) = $line =~ /SECTION: ([\w ]+)/; + my ($section_name) = $line =~ /SECTION: ([\w .]+)/; my $found_section = grep $_ eq $section_name, @sections; $in_section = 1 if ($found_section);