OpenSSL::Ordinals::set_version() should only be given the short version
authorRichard Levitte <levitte@openssl.org>
Wed, 8 Sep 2021 07:40:37 +0000 (09:40 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 9 Sep 2021 10:07:33 +0000 (12:07 +0200)
commit435981cbadad2c58c35bacd30ca5d8b4c9bea72f
treef79eda191df45cb124ceffd8c1882f9f246b34bf
parent2fe2279d1f3bbfa934e432d4f2c3a7e6a6b0f958
OpenSSL::Ordinals::set_version() should only be given the short version

This function tried to shave off the pre-release and build metadata
text from the the version number it gets, but didn't do that quite
right.  Since this isn't even a documented behaviour, the easier, and
arguably more correct path is for that function not to try to shave
off anything, and for the callers to feed it the short version number,
"{MAJOR}.{MINOR}.{PATCH}", nothing more.

The build file templates are adjusted accordingly.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16556)
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
util/perl/OpenSSL/Ordinals.pm