summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-09 11:18:58 +1000
committerPauli <paul.dale@oracle.com>2020-01-12 12:02:17 +1000
commit33ee9ae059ac6f0ce1871da96116c6d582ec524b (patch)
tree1b1af5690e78714f79dfc315f4eb35525444945f /include
parent0feef76fe07e75b70155468f0a5956242d27b316 (diff)
Deprecate the low level MDC2 functions.
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10790)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/mdc2.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/openssl/mdc2.h b/include/openssl/mdc2.h
index b524f66a47..06ab411c8f 100644
--- a/include/openssl/mdc2.h
+++ b/include/openssl/mdc2.h
@@ -25,20 +25,26 @@
extern "C" {
# endif
-# define MDC2_BLOCK 8
# define MDC2_DIGEST_LENGTH 16
+# if !defined(OPENSSL_NO_DEPRECATED_3_0)
+
+# define MDC2_BLOCK 8
+
typedef struct mdc2_ctx_st {
unsigned int num;
unsigned char data[MDC2_BLOCK];
DES_cblock h, hh;
unsigned int pad_type; /* either 1 or 2, default 1 */
} MDC2_CTX;
+# endif
-int MDC2_Init(MDC2_CTX *c);
-int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);
-int MDC2_Final(unsigned char *md, MDC2_CTX *c);
-unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md);
+DEPRECATEDIN_3_0(int MDC2_Init(MDC2_CTX *c))
+DEPRECATEDIN_3_0(int MDC2_Update(MDC2_CTX *c, const unsigned char *data,
+ size_t len))
+DEPRECATEDIN_3_0(int MDC2_Final(unsigned char *md, MDC2_CTX *c))
+DEPRECATEDIN_3_0(unsigned char *MDC2(const unsigned char *d, size_t n,
+ unsigned char *md))
# ifdef __cplusplus
}