Allow empty deprecation macros to be passed as macro arguments
authorMatt Caswell <matt@openssl.org>
Fri, 23 Oct 2020 13:26:48 +0000 (14:26 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 30 Oct 2020 14:56:29 +0000 (14:56 +0000)
commit62a3614372b8171d2f9f9e20aee07ab3002949bd
tree7b8b49a4804fe55e4b976a3aa0bb8b1fce82492a
parente82f45982cf1660d3287332d3d70bf5b01de1fd1
Allow empty deprecation macros to be passed as macro arguments

The OSSL_DEPRECATEDIN_3_0 macro introduced in PR #13074 is intended to
be passed as a parameter to the various PEM declaration macros. However,
in some cases OSSL_DEPRECATEDIN_3_0 is defined to be empty, and it is
not allowed to pass empty macro arguments in C90. Therefore we ensure
these macros are always defined. In the case where they were empty
previously we use a no-op value instead.

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