projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DSO_load() should also work when it is passed a NULL - a new DSO is created
[oweals/openssl.git]
/
crypto
/
sha
/
sha1.c
diff --git
a/crypto/sha/sha1.c
b/crypto/sha/sha1.c
index a4739ac9fda99e4e8affaf3b568d5f37797245f3..d350c88ee47d17b4188ca2d00361c927488e58fd 100644
(file)
--- a/
crypto/sha/sha1.c
+++ b/
crypto/sha/sha1.c
@@
-58,23
+58,17
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include
"sha.h"
+#include
<openssl/sha.h>
#define BUFSIZE 1024*16
#define BUFSIZE 1024*16
-#ifndef NOPROTO
void do_fp(FILE *f);
void pt(unsigned char *md);
void do_fp(FILE *f);
void pt(unsigned char *md);
+#ifndef _OSD_POSIX
int read(int, void *, unsigned int);
int read(int, void *, unsigned int);
-#else
-void do_fp();
-void pt();
-int read();
#endif
#endif
-int main(argc, argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
{
int i,err=0;
FILE *IN;
{
int i,err=0;
FILE *IN;
@@
-102,8
+96,7
@@
char **argv;
exit(err);
}
exit(err);
}
-void do_fp(f)
-FILE *f;
+void do_fp(FILE *f)
{
SHA_CTX c;
unsigned char md[SHA_DIGEST_LENGTH];
{
SHA_CTX c;
unsigned char md[SHA_DIGEST_LENGTH];
@@
-123,8
+116,7
@@
FILE *f;
pt(md);
}
pt(md);
}
-void pt(md)
-unsigned char *md;
+void pt(unsigned char *md)
{
int i;
{
int i;