diff options
Diffstat (limited to 'src/lib/libcrypto/mdc2')
-rw-r--r-- | src/lib/libcrypto/mdc2/Makefile.ssl | 27 | ||||
-rw-r--r-- | src/lib/libcrypto/mdc2/mdc2.h | 10 |
2 files changed, 22 insertions, 15 deletions
diff --git a/src/lib/libcrypto/mdc2/Makefile.ssl b/src/lib/libcrypto/mdc2/Makefile.ssl index a9b06b02bd..941d96c9e9 100644 --- a/src/lib/libcrypto/mdc2/Makefile.ssl +++ b/src/lib/libcrypto/mdc2/Makefile.ssl | |||
@@ -11,7 +11,8 @@ INSTALL_PREFIX= | |||
11 | OPENSSLDIR= /usr/local/ssl | 11 | OPENSSLDIR= /usr/local/ssl |
12 | INSTALLTOP=/usr/local/ssl | 12 | INSTALLTOP=/usr/local/ssl |
13 | MAKE= make -f Makefile.ssl | 13 | MAKE= make -f Makefile.ssl |
14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) | 14 | MAKEDEPPROG= makedepend |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
15 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
16 | AR= ar r | 17 | AR= ar r |
17 | 18 | ||
@@ -39,8 +40,7 @@ all: lib | |||
39 | 40 | ||
40 | lib: $(LIBOBJ) | 41 | lib: $(LIBOBJ) |
41 | $(AR) $(LIB) $(LIBOBJ) | 42 | $(AR) $(LIB) $(LIBOBJ) |
42 | @echo You may get an error following this line. Please ignore. | 43 | $(RANLIB) $(LIB) || echo Never mind. |
43 | - $(RANLIB) $(LIB) | ||
44 | @touch lib | 44 | @touch lib |
45 | 45 | ||
46 | files: | 46 | files: |
@@ -79,13 +79,20 @@ clean: | |||
79 | 79 | ||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
81 | 81 | ||
82 | mdc2_one.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | 82 | mdc2_one.o: ../../e_os.h ../../include/openssl/bio.h |
83 | mdc2_one.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 83 | mdc2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
84 | mdc2_one.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 84 | mdc2_one.o: ../../include/openssl/des.h ../../include/openssl/des_old.h |
85 | mdc2_one.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | 85 | mdc2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
86 | mdc2_one.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h | 86 | mdc2_one.o: ../../include/openssl/lhash.h ../../include/openssl/mdc2.h |
87 | mdc2_one.o: ../../include/openssl/opensslconf.h | ||
87 | mdc2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 88 | mdc2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
88 | mdc2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 89 | mdc2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
89 | mdc2_one.o: ../cryptlib.h | 90 | mdc2_one.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h |
90 | mdc2dgst.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h | 91 | mdc2_one.o: ../cryptlib.h mdc2_one.c |
92 | mdc2dgst.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
93 | mdc2dgst.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h | ||
91 | mdc2dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h | 94 | mdc2dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/opensslconf.h |
95 | mdc2dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
96 | mdc2dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
97 | mdc2dgst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h | ||
98 | mdc2dgst.o: mdc2dgst.c | ||
diff --git a/src/lib/libcrypto/mdc2/mdc2.h b/src/lib/libcrypto/mdc2/mdc2.h index 5da8da72f5..793a8a0f13 100644 --- a/src/lib/libcrypto/mdc2/mdc2.h +++ b/src/lib/libcrypto/mdc2/mdc2.h | |||
@@ -65,7 +65,7 @@ | |||
65 | extern "C" { | 65 | extern "C" { |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #ifdef NO_MDC2 | 68 | #ifdef OPENSSL_NO_MDC2 |
69 | #error MDC2 is disabled. | 69 | #error MDC2 is disabled. |
70 | #endif | 70 | #endif |
71 | 71 | ||
@@ -76,14 +76,14 @@ typedef struct mdc2_ctx_st | |||
76 | { | 76 | { |
77 | int num; | 77 | int num; |
78 | unsigned char data[MDC2_BLOCK]; | 78 | unsigned char data[MDC2_BLOCK]; |
79 | des_cblock h,hh; | 79 | DES_cblock h,hh; |
80 | int pad_type; /* either 1 or 2, default 1 */ | 80 | int pad_type; /* either 1 or 2, default 1 */ |
81 | } MDC2_CTX; | 81 | } MDC2_CTX; |
82 | 82 | ||
83 | 83 | ||
84 | void MDC2_Init(MDC2_CTX *c); | 84 | int MDC2_Init(MDC2_CTX *c); |
85 | void MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); | 85 | int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); |
86 | void MDC2_Final(unsigned char *md, MDC2_CTX *c); | 86 | int MDC2_Final(unsigned char *md, MDC2_CTX *c); |
87 | unsigned char *MDC2(const unsigned char *d, unsigned long n, | 87 | unsigned char *MDC2(const unsigned char *d, unsigned long n, |
88 | unsigned char *md); | 88 | unsigned char *md); |
89 | 89 | ||