openssl/crypto/conf
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
..
build.info Move the loading of the ssl_conf module to libcrypto 2018-04-05 15:30:12 +01:00
conf_api.c Use secure_getenv(3) when available. 2018-09-24 11:21:18 +10:00
conf_def.c def_load_bio(): Free |biosk| more carefully 2018-07-24 09:50:56 +02:00
conf_def.h Fix false positives of IS_*() macros for 8-bit ASCII characters 2018-04-08 20:12:01 +02:00
conf_err.c NCONF_get_number refix. 2018-07-11 09:03:22 +10:00
conf_lcl.h Move the loading of the ssl_conf module to libcrypto 2018-04-05 15:30:12 +01:00
conf_lib.c Update copyright year 2018-09-11 13:45:17 +01:00
conf_mall.c Update copyright year 2018-04-17 15:18:40 +02:00
conf_mod.c Use secure_getenv(3) when available. 2018-09-24 11:21:18 +10:00
conf_sap.c Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
conf_ssl.c Deallocate previously loaded SSL CONF module data 2018-08-14 17:43:36 -04:00
keysets.pl Fix false positives of IS_*() macros for 8-bit ASCII characters 2018-04-08 20:12:01 +02:00