diff options
author | John Kohl <jtkohl@mit.edu> | 1991-02-26 13:42:10 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1991-02-26 13:42:10 +0000 |
commit | d20a0a52e94f95b65546c375d52ab5358748d48f (patch) | |
tree | 6c90a641122dd9e485418c3f93198f4ee40bd16b | |
parent | 16dd1097d067f4e4f42b86ffb40cb12a56b9c312 (diff) | |
download | krb5-d20a0a52e94f95b65546c375d52ab5358748d48f.tar.gz krb5-d20a0a52e94f95b65546c375d52ab5358748d48f.tar.xz krb5-d20a0a52e94f95b65546c375d52ab5358748d48f.zip |
kerberize
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1785 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/md4/md4.c | 17 | ||||
-rw-r--r-- | 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 feed466c4f..8b8bc8cbc2 100644 --- a/src/lib/crypto/md4/md4.c +++ b/src/lib/crypto/md4/md4.c @@ -1,4 +1,14 @@ /* + * $Source$ + * $Author$ + * $Id$ + */ + +#ifndef lint +static char rcsid_md4_c[] = "$Id$"; +#endif lint + +/* ********************************************************************** ** md4.c ** ** RSA Data Security, Inc. MD4 Message Digest Algorithm ** @@ -31,10 +41,15 @@ ********************************************************************** */ -#include "md4.h" +#include <krb5/krb5.h> +#include <krb5/rsa-md4.h> /* 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 63020e6c33..e497ff49b4 100644 --- a/src/lib/crypto/md4/md4driver.c +++ b/src/lib/crypto/md4/md4driver.c @@ -1,4 +1,14 @@ /* + * $Source$ + * $Author$ + * $Id$ + */ + +#ifndef lint +static char rcsid_md4driver_c[] = "$Id$"; +#endif lint + +/* ********************************************************************** ** md4driver.c -- sample routines to test ** ** RSA Data Security, Inc. MD4 message digest algorithm. ** @@ -25,7 +35,8 @@ #include <sys/types.h> #include <time.h> #include <string.h> -#include "md4.h" +#include <krb5/krb5.h> +#include <krb5/rsa-md4.h> /* 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]; |