From d20a0a52e94f95b65546c375d52ab5358748d48f Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 26 Feb 1991 13:42:10 +0000 Subject: [PATCH] kerberize git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1785 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/md4/md4.c | 17 ++++++++++++++++- src/lib/crypto/md4/md4driver.c | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/md4/md4.c b/src/lib/crypto/md4/md4.c index feed466c4..8b8bc8cbc 100644 --- a/src/lib/crypto/md4/md4.c +++ b/src/lib/crypto/md4/md4.c @@ -1,3 +1,13 @@ +/* + * $Source$ + * $Author$ + * $Id$ + */ + +#ifndef lint +static char rcsid_md4_c[] = "$Id$"; +#endif lint + /* ********************************************************************** ** md4.c ** @@ -31,10 +41,15 @@ ********************************************************************** */ -#include "md4.h" +#include +#include /* forward declaration */ +#ifdef __STDC__ +static void Transform (UINT4 *, UINT4 *); +#else static void Transform (); +#endif static unsigned char PADDING[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/src/lib/crypto/md4/md4driver.c b/src/lib/crypto/md4/md4driver.c index 63020e6c3..e497ff49b 100644 --- a/src/lib/crypto/md4/md4driver.c +++ b/src/lib/crypto/md4/md4driver.c @@ -1,3 +1,13 @@ +/* + * $Source$ + * $Author$ + * $Id$ + */ + +#ifndef lint +static char rcsid_md4driver_c[] = "$Id$"; +#endif lint + /* ********************************************************************** ** md4driver.c -- sample routines to test ** @@ -25,7 +35,8 @@ #include #include #include -#include "md4.h" +#include +#include /* Prints message digest buffer in mdContext as 32 hexadecimal digits. Order is from low-order byte to high-order byte of digest. @@ -108,7 +119,11 @@ char *inString; static void MDFile (filename) char *filename; { +#ifdef __STDC__ FILE *inFile = fopen (filename, "rb"); +#else + FILE *inFile = fopen (filename, "r"); +#endif MD4_CTX mdContext; int bytes; unsigned char data[1024]; -- 2.26.2