diff options
author | beck <> | 1999-09-29 04:37:45 +0000 |
---|---|---|
committer | beck <> | 1999-09-29 04:37:45 +0000 |
commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/md2/md2test.c | |
parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip |
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/md2/md2test.c')
-rw-r--r-- | src/lib/libcrypto/md2/md2test.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/lib/libcrypto/md2/md2test.c b/src/lib/libcrypto/md2/md2test.c index 55924d44cd..461d124957 100644 --- a/src/lib/libcrypto/md2/md2test.c +++ b/src/lib/libcrypto/md2/md2test.c | |||
@@ -59,7 +59,19 @@ | |||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include "md2.h" | 62 | |
63 | #ifdef NO_MD2 | ||
64 | int main(int argc, char *argv[]) | ||
65 | { | ||
66 | printf("No MD2 support\n"); | ||
67 | return(0); | ||
68 | } | ||
69 | #else | ||
70 | #include <openssl/md2.h> | ||
71 | |||
72 | #ifdef CHARSET_EBCDIC | ||
73 | #include <openssl/ebcdic.h> | ||
74 | #endif | ||
63 | 75 | ||
64 | char *test[]={ | 76 | char *test[]={ |
65 | "", | 77 | "", |
@@ -82,15 +94,8 @@ char *ret[]={ | |||
82 | "d5976f79d83d3a0dc9806c3c66f3efd8", | 94 | "d5976f79d83d3a0dc9806c3c66f3efd8", |
83 | }; | 95 | }; |
84 | 96 | ||
85 | #ifndef NOPROTO | ||
86 | static char *pt(unsigned char *md); | 97 | static char *pt(unsigned char *md); |
87 | #else | 98 | int main(int argc, char *argv[]) |
88 | static char *pt(); | ||
89 | #endif | ||
90 | |||
91 | int main(argc,argv) | ||
92 | int argc; | ||
93 | char *argv[]; | ||
94 | { | 99 | { |
95 | int i,err=0; | 100 | int i,err=0; |
96 | char **P,**R; | 101 | char **P,**R; |
@@ -118,8 +123,7 @@ char *argv[]; | |||
118 | return(0); | 123 | return(0); |
119 | } | 124 | } |
120 | 125 | ||
121 | static char *pt(md) | 126 | static char *pt(unsigned char *md) |
122 | unsigned char *md; | ||
123 | { | 127 | { |
124 | int i; | 128 | int i; |
125 | static char buf[80]; | 129 | static char buf[80]; |
@@ -128,3 +132,4 @@ unsigned char *md; | |||
128 | sprintf(&(buf[i*2]),"%02x",md[i]); | 132 | sprintf(&(buf[i*2]),"%02x",md[i]); |
129 | return(buf); | 133 | return(buf); |
130 | } | 134 | } |
135 | #endif | ||