From 0c5f728456e5bb726d14f6423d120e4d01da661d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 20 Nov 2020 10:07:10 +0100 Subject: [PATCH] Switch deprecation method for MD2 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13460) --- include/openssl/md2.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/openssl/md2.h b/include/openssl/md2.h index a088d5b680..5d4cb77e71 100644 --- a/include/openssl/md2.h +++ b/include/openssl/md2.h @@ -39,14 +39,15 @@ typedef struct MD2state_st { MD2_INT state[MD2_BLOCK]; } MD2_CTX; # endif - -DEPRECATEDIN_3_0(const char *MD2_options(void)) -DEPRECATEDIN_3_0(int MD2_Init(MD2_CTX *c)) -DEPRECATEDIN_3_0(int MD2_Update(MD2_CTX *c, const unsigned char *data, - size_t len)) -DEPRECATEDIN_3_0(int MD2_Final(unsigned char *md, MD2_CTX *c)) -DEPRECATEDIN_3_0(unsigned char *MD2(const unsigned char *d, size_t n, - unsigned char *md)) +# ifndef OPENSSL_NO_DEPRECATED_3_0 +OSSL_DEPRECATEDIN_3_0 const char *MD2_options(void); +OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c); +OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data, + size_t len); +OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c); +OSSL_DEPRECATEDIN_3_0 unsigned char *MD2(const unsigned char *d, size_t n, + unsigned char *md); +# endif # ifdef __cplusplus }