openssl/crypto/asn1
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
..
a_bitstr.c
a_d2i_fp.c
a_digest.c
a_dup.c
a_gentm.c
a_i2d_fp.c
a_int.c
a_mbstr.c
a_object.c i2d_ASN1_OBJECT(): allocate memory if the user didn't provide a buffer 2018-08-11 12:27:02 +02:00
a_octet.c
a_print.c
a_sign.c
a_strex.c Limit scope of CN name constraints 2018-05-23 11:12:13 -04:00
a_strnid.c Update copyright year 2018-04-17 15:18:40 +02:00
a_time.c
a_type.c
a_utctm.c
a_utf8.c
a_verify.c
ameth_lib.c Make EVP_PKEY_asn1_new() stricter with its input 2018-08-07 07:53:08 +02:00
asn1_err.c i2d_ASN1_OBJECT(): allocate memory if the user didn't provide a buffer 2018-08-11 12:27:02 +02:00
asn1_gen.c
asn1_item_list.c
asn1_item_list.h Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
asn1_lib.c Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
asn1_locl.h
asn1_par.c
asn_mime.c Harmonize use of sk_TYPE_find's return value. 2018-08-07 08:56:54 +02:00
asn_moid.c asn1/asn_moid.c: overhaul do_create. 2018-08-22 21:35:27 +02:00
asn_mstbl.c
asn_pack.c
bio_asn1.c Update copyright year 2018-04-17 15:18:40 +02:00
bio_ndef.c Update copyright year 2018-04-17 15:18:40 +02:00
build.info
charmap.h
charmap.pl
d2i_pr.c
d2i_pu.c
evp_asn1.c
f_int.c
f_string.c
i2d_pr.c
i2d_pu.c
n_pkey.c
nsseq.c
p5_pbe.c
p5_pbev2.c Update copyright year 2018-06-20 15:29:23 +01:00
p5_scrypt.c add 'unsupported cipher mode' diagnostics to evp_lib.c and genpkey.c 2018-06-18 10:45:35 +01:00
p8_pkey.c
standard_methods.h Move SM2 algos to SM2 specific PKEY method 2018-06-19 11:29:44 +01:00
t_bitst.c
t_pkey.c
t_spki.c
tasn_dec.c Update copyright year 2018-04-03 13:57:12 +01:00
tasn_enc.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
tasn_fre.c
tasn_new.c Update copyright year 2018-04-17 15:18:40 +02:00
tasn_prn.c
tasn_scn.c
tasn_typ.c
tasn_utl.c asn1/tasn_utl.c: fix logical error in and overhaul asn1_do_lock. 2018-08-01 16:07:24 +02:00
tbl_standard.h
x_algor.c
x_bignum.c
x_info.c
x_int64.c ASN.1 DER: Make INT32 / INT64 types read badly encoded LONG zeroes 2018-09-09 03:39:37 +02:00
x_long.c Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
x_pkey.c
x_sig.c
x_spki.c
x_val.c