openssl/util
Richard Levitte fcd2d5a612 Refactor the computation of API version limits
Previously, the API version limit was indicated with a numeric version
number.  This was "natural" in the pre-3.0.0 because the version was
this simple number.

With 3.0.0, the version is divided into three separate numbers, and
it's only the major number that counts, but we still need to be able
to support pre-3.0.0 version limits.

Therefore, we allow OPENSSL_API_COMPAT to be defined with a pre-3.0.0
style numeric version number or with a simple major number, i.e. can
be defined like this for any application:

    -D OPENSSL_API_COMPAT=0x10100000L
    -D OPENSSL_API_COMPAT=3

Since the pre-3.0.0 numerical version numbers are high, it's easy to
distinguish between a simple major number and a pre-3.0.0 numerical
version number and to thereby support both forms at the same time.

Internally, we define the following macros depending on the value of
OPENSSL_API_COMPAT:

    OPENSSL_API_0_9_8
    OPENSSL_API_1_0_0
    OPENSSL_API_1_1_0
    OPENSSL_API_3

They indicate that functions marked for deprecation in the
corresponding major release shall not be built if defined.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7724)
2018-12-06 12:24:48 +01:00
..
perl Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
add-depends.pl util/add-depends.pl: go through shared_sources too 2018-11-07 14:38:20 +01:00
build.info VMS: throw away [.util]shareable_image_wrap.c.in and add replacement scripts 2017-03-14 22:27:17 +01:00
check-malloc-errs Fix last(?) batch of malloc-NULL places 2018-04-26 14:02:24 -04:00
ck_errf.pl Update copyright year 2018-06-20 15:29:23 +01:00
copy.pl Update copyright year 2018-05-29 13:16:04 +01:00
dofile.pl util/dofile.pl: require Text::Template 1.46 or newer 2018-07-10 16:32:20 +02:00
echo.pl Windows: fix echo for nmake 2018-07-11 14:49:02 +02:00
engines.num Change the build of engines to use ordinal files for symbol export 2018-10-05 08:22:42 +02:00
find-doc-nits util/find-doc-nits: allow #undef 2018-12-06 12:24:48 +01:00
find-unused-errs Add -f -r flags to find-unused-errs 2017-04-16 07:57:12 -04:00
indent.pro crypto/rand: fix some style nit's 2018-10-10 14:00:43 +02:00
libcrypto.num Switch to MAJOR.MINOR.PATCH versioning and version 3.0.0-dev 2018-12-06 12:24:47 +01:00
libssl.num Added missing signature algorithm reflection functions 2018-11-12 16:55:38 -05:00
local_shlib.com.in VMS: don't use /DSF, turn off CALL_DEBUG instead 2017-03-15 03:09:57 +01:00
mkbuildinf.pl Fix SOURCE_DATE_EPOCH bug; use UTC 2017-11-27 14:34:14 -05:00
mkdef.pl Switch to MAJOR.MINOR.PATCH versioning and version 3.0.0-dev 2018-12-06 12:24:47 +01:00
mkdir-p.pl
mkerr.pl Small simplification in mkerr.pl 2018-02-09 07:04:32 -05:00
mknum.pl Refactor util/mknum.pl for clearer separation of functionality 2018-10-04 12:45:40 +02:00
mkrc.pl Switch to MAJOR.MINOR.PATCH versioning and version 3.0.0-dev 2018-12-06 12:24:47 +01:00
mktar.sh Have util/mktar.sh display the absolute path to the tarball 2018-11-24 18:40:31 +01:00
openssl-format-source Fix some Typos and indents 2017-08-11 10:16:33 -04:00
openssl-update-copyright Enhance util/openssl-update-copyright shell script 2018-01-10 18:23:28 +01:00
opensslwrap.sh
private.num Switch to MAJOR.MINOR.PATCH versioning and version 3.0.0-dev 2018-12-06 12:24:47 +01:00
process_docs.pl util/process_docs.pl: handle multiple source directories for .pod files 2018-12-03 10:00:14 +01:00
shlib_wrap.sh.in Fix rpath-related Linux "test_shlibload" failure. 2018-11-14 00:41:57 +01:00
su-filter.pl Remove trailing whitespace from some files. 2016-10-10 23:36:21 +01:00
unlocal_shlib.com.in VMS: don't use /DSF, turn off CALL_DEBUG instead 2017-03-15 03:09:57 +01:00