include/openssl/opensslconf.h.in: allow future deprecation for v4.0
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)
This commit is contained in:
parent
db2f2d49b9
commit
478d4f912c
1 changed files with 12 additions and 0 deletions
|
@ -85,6 +85,18 @@ extern "C" {
|
|||
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not deprecate things to be deprecated in version 4.0 before the
|
||||
* OpenSSL version number matches.
|
||||
*/
|
||||
#if OPENSSL_VERSION_MAJOR < 4
|
||||
# define DEPRECATEDIN_4(f) f;
|
||||
#elif OPENSSL_API_COMPAT < 0x40000000L
|
||||
# define DEPRECATEDIN_4(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_4(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x30000000L
|
||||
# define DEPRECATEDIN_3(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue