X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshmd5.c;h=7fbd8c772eeef17529f8b7c2a695cb1ae93c8fe1;hb=bdfd70375b306405706dac3254358fb7df302886;hp=05867408641f659af0ca4d69fe7f988f030d9c8d;hpb=801832bf59d216742be76eed86a19fa93993a405;p=PuTTY.git diff --git a/sshmd5.c b/sshmd5.c index 05867408..7fbd8c77 100644 --- a/sshmd5.c +++ b/sshmd5.c @@ -19,7 +19,7 @@ #define subround(f,w,x,y,z,k,s,ti) \ w = x + rol(w + f(x,y,z) + block[k] + ti, s) -void MD5_Core_Init(MD5_Core_State * s) +static void MD5_Core_Init(MD5_Core_State * s) { s->h[0] = 0x67452301; s->h[1] = 0xefcdab89; @@ -27,7 +27,7 @@ void MD5_Core_Init(MD5_Core_State * s) s->h[3] = 0x10325476; } -void MD5_Block(MD5_Core_State * s, uint32 * block) +static void MD5_Block(MD5_Core_State * s, uint32 * block) { uint32 a, b, c, d; @@ -210,7 +210,7 @@ void MD5Final(unsigned char output[16], struct MD5Context *s) static void *md5_make_context(void) { - return smalloc(2*sizeof(struct MD5Context)); + return snewn(2, struct MD5Context); } static void md5_free_context(void *handle)