From: Richard Levitte Date: Fri, 20 Nov 2020 09:08:49 +0000 (+0100) Subject: Switch deprecation method for RIPEMD X-Git-Tag: openssl-3.0.0-alpha10~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632fb5259f066b1b3a5971905da350a1743cde84;p=thirdparty%2Fopenssl.git Switch deprecation method for RIPEMD Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13460) --- diff --git a/include/openssl/ripemd.h b/include/openssl/ripemd.h index 9c5e17898ec..900ee317b92 100644 --- a/include/openssl/ripemd.h +++ b/include/openssl/ripemd.h @@ -41,15 +41,16 @@ typedef struct RIPEMD160state_st { unsigned int num; } RIPEMD160_CTX; # endif - -DEPRECATEDIN_3_0(int RIPEMD160_Init(RIPEMD160_CTX *c)) -DEPRECATEDIN_3_0(int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, - size_t len)) -DEPRECATEDIN_3_0(int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c)) -DEPRECATEDIN_3_0(unsigned char *RIPEMD160(const unsigned char *d, size_t n, - unsigned char *md)) -DEPRECATEDIN_3_0(void RIPEMD160_Transform(RIPEMD160_CTX *c, - const unsigned char *b)) +# ifndef OPENSSL_NO_DEPRECATED_3_0 +OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX *c); +OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, + size_t len); +OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); +OSSL_DEPRECATEDIN_3_0 unsigned char *RIPEMD160(const unsigned char *d, size_t n, + unsigned char *md); +OSSL_DEPRECATEDIN_3_0 void RIPEMD160_Transform(RIPEMD160_CTX *c, + const unsigned char *b); +# endif # ifdef __cplusplus }