diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha.c')
-rw-r--r-- | src/lib/libcrypto/sha/sha.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/lib/libcrypto/sha/sha.c b/src/lib/libcrypto/sha/sha.c index 713fec3610..42126551d1 100644 --- a/src/lib/libcrypto/sha/sha.c +++ b/src/lib/libcrypto/sha/sha.c | |||
@@ -58,23 +58,14 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include "sha.h" | 61 | #include <openssl/sha.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 | #else | 68 | int main(int argc, char **argv) |
70 | void do_fp(); | ||
71 | void pt(); | ||
72 | int read(); | ||
73 | #endif | ||
74 | |||
75 | int main(argc, argv) | ||
76 | int argc; | ||
77 | char **argv; | ||
78 | { | 69 | { |
79 | int i,err=0; | 70 | int i,err=0; |
80 | FILE *IN; | 71 | FILE *IN; |
@@ -102,8 +93,7 @@ char **argv; | |||
102 | exit(err); | 93 | exit(err); |
103 | } | 94 | } |
104 | 95 | ||
105 | void do_fp(f) | 96 | void do_fp(FILE *f) |
106 | FILE *f; | ||
107 | { | 97 | { |
108 | SHA_CTX c; | 98 | SHA_CTX c; |
109 | unsigned char md[SHA_DIGEST_LENGTH]; | 99 | unsigned char md[SHA_DIGEST_LENGTH]; |
@@ -123,8 +113,7 @@ FILE *f; | |||
123 | pt(md); | 113 | pt(md); |
124 | } | 114 | } |
125 | 115 | ||
126 | void pt(md) | 116 | void pt(unsigned char *md) |
127 | unsigned char *md; | ||
128 | { | 117 | { |
129 | int i; | 118 | int i; |
130 | 119 | ||