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/mdc2/mdc2dgst.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/mdc2/mdc2dgst.c')
-rw-r--r-- | crypto/mdc2/mdc2dgst.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c index f2803fb58c..193c1445bb 100644 --- a/crypto/mdc2/mdc2dgst.c +++ b/crypto/mdc2/mdc2dgst.c @@ -80,8 +80,7 @@ static void mdc2_body(MDC2_CTX *c, unsigned char *in, unsigned int len); static void mdc2_body(); #endif -void MDC2_Init(c) -MDC2_CTX *c; +void MDC2_Init(MDC2_CTX *c) { c->num=0; c->pad_type=1; @@ -89,10 +88,7 @@ MDC2_CTX *c; memset(&(c->hh[0]),0x25,MDC2_BLOCK); } -void MDC2_Update(c,in,len) -MDC2_CTX *c; -register unsigned char *in; -unsigned long len; +void MDC2_Update(MDC2_CTX *c, register unsigned char *in, unsigned long len) { int i,j; @@ -127,10 +123,7 @@ unsigned long len; } } -static void mdc2_body(c,in,len) -MDC2_CTX *c; -unsigned char *in; -unsigned int len; +static void mdc2_body(MDC2_CTX *c, unsigned char *in, unsigned int len) { register DES_LONG tin0,tin1; register DES_LONG ttin0,ttin1; @@ -168,9 +161,7 @@ unsigned int len; } } -void MDC2_Final(md,c) -unsigned char *md; -MDC2_CTX *c; +void MDC2_Final(unsigned char *md, MDC2_CTX *c) { int i,j; |