]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add deprecation macros for 3.6.0
authorNorbert Pocs <norbertp@openssl.org>
Thu, 22 May 2025 09:45:49 +0000 (11:45 +0200)
committerNeil Horman <nhorman@openssl.org>
Thu, 17 Jul 2025 15:25:18 +0000 (11:25 -0400)
Signed-off-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27727)

include/openssl/macros.h

index 296723ec4237e9c0fad7612db1c5eb40ab667334..46e9cf34261ed1045d0a8796cb94ff52cef5e717 100644 (file)
  * 'no-deprecated'.
  */
 
+# undef OPENSSL_NO_DEPRECATED_3_6
 # undef OPENSSL_NO_DEPRECATED_3_4
 # undef OPENSSL_NO_DEPRECATED_3_1
 # undef OPENSSL_NO_DEPRECATED_3_0
 # undef OPENSSL_NO_DEPRECATED_1_0_0
 # undef OPENSSL_NO_DEPRECATED_0_9_8
 
+# if OPENSSL_API_LEVEL >= 30600
+#  ifndef OPENSSL_NO_DEPRECATED
+#   define OSSL_DEPRECATEDIN_3_6                OSSL_DEPRECATED(3.6)
+#   define OSSL_DEPRECATEDIN_3_6_FOR(msg)       OSSL_DEPRECATED_FOR(3.6, msg)
+#  else
+#   define OPENSSL_NO_DEPRECATED_3_6
+#  endif
+# else
+#  define OSSL_DEPRECATEDIN_3_6
+#  define OSSL_DEPRECATEDIN_3_6_FOR(msg)
+# endif
 # if OPENSSL_API_LEVEL >= 30500
 #  ifndef OPENSSL_NO_DEPRECATED
 #   define OSSL_DEPRECATEDIN_3_5                OSSL_DEPRECATED(3.5)