projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS assembly pack: add support for SmartMIPS ASE.
[openssl.git]
/
crypto
/
sha
/
sha.c
diff --git
a/crypto/sha/sha.c
b/crypto/sha/sha.c
index 2fcd9636ee2c99a9e9530a290d3089ca7cf41c93..42126551d12ea3d8115764bd301152a05eaa745e 100644
(file)
--- a/
crypto/sha/sha.c
+++ b/
crypto/sha/sha.c
@@
-1,5
+1,5
@@
/* crypto/sha/sha.c */
/* crypto/sha/sha.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-58,23
+58,14
@@
#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);
int read(int, void *, unsigned int);
void do_fp(FILE *f);
void pt(unsigned char *md);
int read(int, void *, unsigned int);
-#else
-void do_fp();
-void pt();
-int read();
-#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
+93,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
+113,7
@@
FILE *f;
pt(md);
}
pt(md);
}
-void pt(md)
-unsigned char *md;
+void pt(unsigned char *md)
{
int i;
{
int i;