From: Eugene Syromiatnikov Date: Tue, 31 Mar 2026 10:19:37 +0000 (+0200) Subject: util/checkplatformsyms.pl: do not hard-code "libcrypto-3-x64" library name X-Git-Tag: openssl-4.0.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e6678309fd065b27b4d8549a323c7f2ceb7e1b;p=thirdparty%2Fopenssl.git util/checkplatformsyms.pl: do not hard-code "libcrypto-3-x64" library name Ideally, it should probably passed to the script as a parameter, but, in the meantime, follow the relaxed attitude of the Unix counterpart and match against any version and all expected arch suffixes. Signed-off-by: Eugene Syromiatnikov Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz MergeDate: Fri Apr 3 15:42:21 2026 (Merged from https://github.com/openssl/openssl/pull/30635) (cherry picked from commit 9648c510147e343393a568f1616a5091f1eb3d0a) --- diff --git a/util/checkplatformsyms.pl b/util/checkplatformsyms.pl index 0f44a4dbd90..991c74bac99 100755 --- a/util/checkplatformsyms.pl +++ b/util/checkplatformsyms.pl @@ -49,7 +49,7 @@ if ($Config{osname} eq "MSWin32") { $currentdll =~ s/^\s+|s+$//g; } # filter imports from our own library - if ("$currentdll" ne "libcrypto-3-x64") { + if ("$currentdll" !~ /^libcrypto-[1-9][0-9]*(-x64)?$/) { my $line = $_; $line =~ s/ [0-9a-fA-F]{1,2} /SYMBOL /; if (index($line, "SYMBOL") != -1) {