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)
$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) {