Change OSSL_DEPRECATED to take a version argument
authorRichard Levitte <levitte@openssl.org>
Sat, 3 Oct 2020 07:33:32 +0000 (09:33 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 12 Oct 2020 06:29:30 +0000 (08:29 +0200)
commit6fbb89fb12b6a5ca9838b357ca6c810c57f474e4
tree3f2017b007702af882b50f0a0cfbd9981d2b153f
parentabd9d035a727648f4fd77fda464bd1ee5e9cf9c2
Change OSSL_DEPRECATED to take a version argument

The macro value is changed to use deprecation messages where whose are
supported.

We also add the macro OSSL_DEPRECATED_FOR(), to be used whenever an
additional message text is desirable, for example to tell the user
what the deprecated is replaced with.  Example:

    OSSL_DEPRECATED_FOR(3.0,"use EVP_PKEY and EVP_PKEY_size() instead")
    int RSA_size(const RSA *rsa);

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