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/md2.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/md2.c')
-rw-r--r-- | src/lib/libcrypto/md2/md2.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/lib/libcrypto/md2/md2.c b/src/lib/libcrypto/md2/md2.c index 7f3ab64a43..f4d6f62264 100644 --- a/src/lib/libcrypto/md2/md2.c +++ b/src/lib/libcrypto/md2/md2.c | |||
@@ -58,25 +58,15 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include "md2.h" | 61 | #include <openssl/md2.h> |
62 | 62 | ||
63 | #define BUFSIZE 1024*16 | 63 | #define BUFSIZE 1024*16 |
64 | 64 | ||
65 | #ifndef NOPROTO | ||
66 | void do_fp(FILE *f); | 65 | void do_fp(FILE *f); |
67 | void pt(unsigned char *md); | 66 | void pt(unsigned char *md); |
68 | int read(int, void *, unsigned int); | 67 | int read(int, void *, unsigned int); |
69 | void exit(int); | 68 | void exit(int); |
70 | #else | 69 | int main(int argc, char *argv[]) |
71 | void do_fp(); | ||
72 | void pt(); | ||
73 | int read(); | ||
74 | void exit(); | ||
75 | #endif | ||
76 | |||
77 | int main(argc, argv) | ||
78 | int argc; | ||
79 | char *argv[]; | ||
80 | { | 70 | { |
81 | int i,err=0; | 71 | int i,err=0; |
82 | FILE *IN; | 72 | FILE *IN; |
@@ -105,8 +95,7 @@ char *argv[]; | |||
105 | return(err); | 95 | return(err); |
106 | } | 96 | } |
107 | 97 | ||
108 | void do_fp(f) | 98 | void do_fp(FILE *f) |
109 | FILE *f; | ||
110 | { | 99 | { |
111 | MD2_CTX c; | 100 | MD2_CTX c; |
112 | unsigned char md[MD2_DIGEST_LENGTH]; | 101 | unsigned char md[MD2_DIGEST_LENGTH]; |
@@ -125,8 +114,7 @@ FILE *f; | |||
125 | pt(md); | 114 | pt(md); |
126 | } | 115 | } |
127 | 116 | ||
128 | void pt(md) | 117 | void pt(unsigned char *md) |
129 | unsigned char *md; | ||
130 | { | 118 | { |
131 | int i; | 119 | int i; |
132 | 120 | ||