summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mdc2/mdc2.h
diff options
context:
space:
mode:
authorbeck <>1999-09-29 04:37:45 +0000
committerbeck <>1999-09-29 04:37:45 +0000
commitde8f24ea083384bb66b32ec105dc4743c5663cdf (patch)
tree1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/mdc2/mdc2.h
parentcb929d29896bcb87c2a97417fbd03e50078fc178 (diff)
downloadopenbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/mdc2/mdc2.h')
-rw-r--r--src/lib/libcrypto/mdc2/mdc2.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2.h b/src/lib/libcrypto/mdc2/mdc2.h
index 0b104be184..ec8e159fc9 100644
--- a/src/lib/libcrypto/mdc2/mdc2.h
+++ b/src/lib/libcrypto/mdc2/mdc2.h
@@ -63,7 +63,11 @@
63extern "C" { 63extern "C" {
64#endif 64#endif
65 65
66#include "des.h" 66#include <openssl/des.h>
67
68#ifdef NO_MDC2
69#error MDC2 is disabled.
70#endif
67 71
68#define MDC2_BLOCK 8 72#define MDC2_BLOCK 8
69#define MDC2_DIGEST_LENGTH 16 73#define MDC2_DIGEST_LENGTH 16
@@ -76,22 +80,12 @@ typedef struct mdc2_ctx_st
76 int pad_type; /* either 1 or 2, default 1 */ 80 int pad_type; /* either 1 or 2, default 1 */
77 } MDC2_CTX; 81 } MDC2_CTX;
78 82
79#ifndef NOPROTO
80 83
81void MDC2_Init(MDC2_CTX *c); 84void MDC2_Init(MDC2_CTX *c);
82void MDC2_Update(MDC2_CTX *c, unsigned char *data, unsigned long len); 85void MDC2_Update(MDC2_CTX *c, unsigned char *data, unsigned long len);
83void MDC2_Final(unsigned char *md, MDC2_CTX *c); 86void MDC2_Final(unsigned char *md, MDC2_CTX *c);
84unsigned char *MDC2(unsigned char *d, unsigned long n, unsigned char *md); 87unsigned char *MDC2(unsigned char *d, unsigned long n, unsigned char *md);
85 88
86#else
87
88void MDC2_Init();
89void MDC2_Update();
90void MDC2_Final();
91unsigned char *MDC2();
92
93#endif
94
95#ifdef __cplusplus 89#ifdef __cplusplus
96} 90}
97#endif 91#endif