Commit 9648c51014 for openssl.org
commit 9648c510147e343393a568f1616a5091f1eb3d0a
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Tue Mar 31 12:19:37 2026 +0200
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 <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Fri Apr 3 15:42:21 2026
(Merged from https://github.com/openssl/openssl/pull/30635)
diff --git a/util/checkplatformsyms.pl b/util/checkplatformsyms.pl
index 0f44a4dbd9..991c74bac9 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) {