aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-20 10:07:31 +0100
committerRichard Levitte <levitte@openssl.org>2020-12-04 20:44:24 +0100
commit5fb0f3178fc23739781c5ba219180e64a82a2314 (patch)
tree83ab8a210e745541af16dadda4063bf9372be425
parent4ea7e4e013e8159816cfb9928460a8f3f6044a1d (diff)
downloadopenssl-5fb0f3178fc23739781c5ba219180e64a82a2314.tar.gz
Switch deprecation method for MD5
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13460)
-rw-r--r--include/openssl/md5.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/openssl/md5.h b/include/openssl/md5.h
index c111639b5d..77a577340f 100644
--- a/include/openssl/md5.h
+++ b/include/openssl/md5.h
@@ -45,13 +45,14 @@ typedef struct MD5state_st {
unsigned int num;
} MD5_CTX;
# endif
-
-DEPRECATEDIN_3_0(int MD5_Init(MD5_CTX *c))
-DEPRECATEDIN_3_0(int MD5_Update(MD5_CTX *c, const void *data, size_t len))
-DEPRECATEDIN_3_0(int MD5_Final(unsigned char *md, MD5_CTX *c))
-DEPRECATEDIN_3_0(unsigned char *MD5(const unsigned char *d, size_t n,
- unsigned char *md))
-DEPRECATEDIN_3_0(void MD5_Transform(MD5_CTX *c, const unsigned char *b))
+# ifndef OPENSSL_NO_DEPRECATED_3_0
+OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
+OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
+OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
+OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
+ unsigned char *md);
+OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b);
+# endif
# ifdef __cplusplus
}