Add convenience macros OSSL_DEPRECATEDIN_{major}_{minor}
authorRichard Levitte <levitte@openssl.org>
Sun, 4 Oct 2020 09:13:28 +0000 (11:13 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 12 Oct 2020 06:29:30 +0000 (08:29 +0200)
commit77c30753cdcf4da182953b3b169296c6612089ef
tree6246b2b812f1ba91e56d73bed26d87716a503608
parentf044964e7a8b731d1452bbaf5028311db329a45b
Add convenience macros OSSL_DEPRECATEDIN_{major}_{minor}

As opposed to DEPRECATEDIN_{major}_{minor}(), any use of these macros must
be guarded with a corresponding OPENSSL_NO_DEPRECATED_{major}_{minor}:

    #ifndef OPENSSL_NO_DEPRECATED_3_0
    OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
    #endif

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13074)
include/openssl/macros.h