diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/md5 | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/md5')
-rw-r--r-- | crypto/md5/md5.c | 10 | ||||
-rw-r--r-- | crypto/md5/md5_dgst.c | 24 | ||||
-rw-r--r-- | crypto/md5/md5_one.c | 5 | ||||
-rw-r--r-- | crypto/md5/md5test.c | 7 |
4 files changed, 12 insertions, 34 deletions
diff --git a/crypto/md5/md5.c b/crypto/md5/md5.c index 9d6f5a6003..d37db034aa 100644 --- a/crypto/md5/md5.c +++ b/crypto/md5/md5.c @@ -72,9 +72,7 @@ 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; @@ -102,8 +100,7 @@ char **argv; exit(err); } -void do_fp(f) -FILE *f; +void do_fp(FILE *f) { MD5_CTX c; unsigned char md[MD5_DIGEST_LENGTH]; @@ -123,8 +120,7 @@ FILE *f; pt(md); } -void pt(md) -unsigned char *md; +void pt(unsigned char *md) { int i; diff --git a/crypto/md5/md5_dgst.c b/crypto/md5/md5_dgst.c index ba33a4f476..104918909a 100644 --- a/crypto/md5/md5_dgst.c +++ b/crypto/md5/md5_dgst.c @@ -86,8 +86,7 @@ char *MD5_version="MD5" OPENSSL_VERSION_PTEXT; # endif #endif -void MD5_Init(c) -MD5_CTX *c; +void MD5_Init(MD5_CTX *c) { c->A=INIT_DATA_A; c->B=INIT_DATA_B; @@ -98,10 +97,7 @@ MD5_CTX *c; c->num=0; } -void MD5_Update(c, _data, len) -MD5_CTX *c; -const void *_data; -unsigned long len; +void MD5_Update(MD5_CTX *c, const void *_data, unsigned long len) { register const unsigned char *data=_data; register ULONG *p; @@ -232,9 +228,7 @@ unsigned long len; } } -void MD5_Transform(c,b) -MD5_CTX *c; -unsigned char *b; +void MD5_Transform(MD5_CTX *c, unsigned char *b) { ULONG p[16]; #if !defined(L_ENDIAN) @@ -271,10 +265,7 @@ unsigned char *b; #ifndef MD5_ASM -static void md5_block(c, X, num) -MD5_CTX *c; -register ULONG *X; -int num; +static void md5_block(MD5_CTX *c, register ULONG *X, int num) { register ULONG A,B,C,D; @@ -368,9 +359,7 @@ int num; } #endif -void MD5_Final(md, c) -unsigned char *md; -MD5_CTX *c; +void MD5_Final(unsigned char *md, MD5_CTX *c) { register int i,j; register ULONG l; @@ -425,8 +414,7 @@ MD5_CTX *c; } #ifdef undef -int printit(l) -unsigned long *l; +int printit(unsigned long *l) { int i,ii; diff --git a/crypto/md5/md5_one.c b/crypto/md5/md5_one.c index ab6bb435f9..c761401160 100644 --- a/crypto/md5/md5_one.c +++ b/crypto/md5/md5_one.c @@ -59,10 +59,7 @@ #include <stdio.h> #include "md5_locl.h" -unsigned char *MD5(d, n, md) -unsigned char *d; -unsigned long n; -unsigned char *md; +unsigned char *MD5(unsigned char *d, unsigned long n, unsigned char *md) { MD5_CTX c; static unsigned char m[MD5_DIGEST_LENGTH]; diff --git a/crypto/md5/md5test.c b/crypto/md5/md5test.c index 74b84bc67f..33b204f8e6 100644 --- a/crypto/md5/md5test.c +++ b/crypto/md5/md5test.c @@ -88,9 +88,7 @@ static char *pt(unsigned char *md); static char *pt(); #endif -int main(argc,argv) -int argc; -char *argv[]; +int main(int argc, char *argv[]) { int i,err=0; unsigned char **P,**R; @@ -118,8 +116,7 @@ char *argv[]; return(0); } -static char *pt(md) -unsigned char *md; +static char *pt(unsigned char *md) { int i; static char buf[80]; |