summaryrefslogtreecommitdiffstats
path: root/util/mkdef.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-12-10 11:37:19 +0100
committerRichard Levitte <levitte@openssl.org>2018-12-10 13:42:41 +0100
commitd1c87578a29b9b6506ff8c11bdf3e5d63f784965 (patch)
tree1ff7b06229abece1435100d3b5d55fb0e71e1e04 /util/mkdef.pl
parenteng_devcrypto: add command to dump driver info (diff)
downloadopenssl-d1c87578a29b9b6506ff8c11bdf3e5d63f784965.tar.xz
openssl-d1c87578a29b9b6506ff8c11bdf3e5d63f784965.zip
VMS: fix library compatibility settings in util/mkdef.pl
The regexp to parse the incoming version number was flawed, and since we allow ourselves to add missing APIs in PATCH releases, the compatibility settings still need to include the PATCH part of the version number. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/7858)
Diffstat (limited to 'util/mkdef.pl')
-rwxr-xr-xutil/mkdef.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index 469bc251a7..189e5b3627 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -386,7 +386,9 @@ _____
_____
if (defined $version) {
- my ($libvmajor, $libvminor) = $version =~ /^(\d+)_(\d+)$/;
+ $version =~ /^(\d+)\.(\d+)\.(\d+)/;
+ my $libvmajor = $1;
+ my $libvminor = $2 * 100 + $3;
print <<"_____";
GSMATCH=LEQUAL,$libvmajor,$libvminor;
_____