]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
util/checkplatformsyms.pl: do not hard-code "libcrypto-3-x64" library name
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 31 Mar 2026 10:19:37 +0000 (12:19 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Fri, 3 Apr 2026 15:42:48 +0000 (17:42 +0200)
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)

(cherry picked from commit 9648c510147e343393a568f1616a5091f1eb3d0a)

util/checkplatformsyms.pl

index 0f44a4dbd90a94cfa5ae0270c56becd73faf217a..991c74bac99e9992f952b29ae7f827e3e5398400 100755 (executable)
@@ -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) {