From 4ea7e4e013e8159816cfb9928460a8f3f6044a1d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 20 Nov 2020 10:07:24 +0100 Subject: [PATCH] Switch deprecation method for MD4 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13460) --- include/openssl/md4.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/openssl/md4.h b/include/openssl/md4.h index 1686f0ae54a..6c150a6cb24 100644 --- a/include/openssl/md4.h +++ b/include/openssl/md4.h @@ -46,13 +46,14 @@ typedef struct MD4state_st { unsigned int num; } MD4_CTX; # endif - -DEPRECATEDIN_3_0(int MD4_Init(MD4_CTX *c)) -DEPRECATEDIN_3_0(int MD4_Update(MD4_CTX *c, const void *data, size_t len)) -DEPRECATEDIN_3_0(int MD4_Final(unsigned char *md, MD4_CTX *c)) -DEPRECATEDIN_3_0(unsigned char *MD4(const unsigned char *d, size_t n, - unsigned char *md)) -DEPRECATEDIN_3_0(void MD4_Transform(MD4_CTX *c, const unsigned char *b)) +# ifndef OPENSSL_NO_DEPRECATED_3_0 +OSSL_DEPRECATEDIN_3_0 int MD4_Init(MD4_CTX *c); +OSSL_DEPRECATEDIN_3_0 int MD4_Update(MD4_CTX *c, const void *data, size_t len); +OSSL_DEPRECATEDIN_3_0 int MD4_Final(unsigned char *md, MD4_CTX *c); +OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n, + unsigned char *md); +OSSL_DEPRECATEDIN_3_0 void MD4_Transform(MD4_CTX *c, const unsigned char *b); +# endif # ifdef __cplusplus } -- 2.47.2