Skip to content

Commit

Permalink
Ensure symbols don't get deprecated too early
Browse files Browse the repository at this point in the history
There are symbols we've marked for deprecation in OpenSSL 1.2.0.  We
must ensure that they don't actually become deprecated before that.

Fixes openssl#6814

Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#6824)
  • Loading branch information
levitte committed Jul 31, 2018
1 parent ed4fc85 commit bff0f2b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/openssl/opensslconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* https://www.openssl.org/source/license.html
*/

#include <openssl/opensslv.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -97,7 +99,13 @@ extern "C" {
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
#endif

#if OPENSSL_API_COMPAT < 0x10200000L
/*
* Do not deprecate things to be deprecated in version 1.2.0 before the
* OpenSSL version number matches.
*/
#if OPENSSL_VERSION_NUMBER < 0x10200000L
# define DEPRECATEDIN_1_2_0(f) f;
#elif OPENSSL_API_COMPAT < 0x10200000L
# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
#else
# define DEPRECATEDIN_1_2_0(f)
Expand Down

0 comments on commit bff0f2b

Please sign in to comment.