From d44a0b6e5d6e52f927e2502ef37e8248727d594b Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 14 Oct 1994 04:23:12 +0000 Subject: [PATCH] Cast char pointer to the expected unsigned char pointer, since that's what MDUpdate requires. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4503 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/md5/ChangeLog | 6 ++++++ src/lib/crypto/md5/t_mddriver.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/crypto/md5/ChangeLog b/src/lib/crypto/md5/ChangeLog index 735577bd2..920f0d724 100644 --- a/src/lib/crypto/md5/ChangeLog +++ b/src/lib/crypto/md5/ChangeLog @@ -1,3 +1,9 @@ +Fri Oct 14 00:22:19 1994 Theodore Y. Ts'o (tytso@dcl) + + * t_mddriver.c (MDString, MDTestSuite): Cast char pointer to the + expected unsigned char pointer, since that's what MDUpdate + requires. + Thu Oct 13 17:50:19 1994 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: Add support for the MDx test driver t_mddriver. diff --git a/src/lib/crypto/md5/t_mddriver.c b/src/lib/crypto/md5/t_mddriver.c index d187e6ae3..a1e5f9182 100644 --- a/src/lib/crypto/md5/t_mddriver.c +++ b/src/lib/crypto/md5/t_mddriver.c @@ -170,7 +170,7 @@ char *string; unsigned int len = strlen (string); MDInit (&context); - MDUpdate (&context, string, len); + MDUpdate (&context, (unsigned char *) string, len); MDFinal (&context); printf ("MD%d (\"%s\") = ", MD, string); @@ -201,7 +201,7 @@ static void MDTimeTrial () /* Digest blocks */ MDInit (&context); for (i = 0; i < TEST_BLOCK_COUNT; i++) - MDUpdate (&context, block, TEST_BLOCK_LEN); + MDUpdate (&context, block, TEST_BLOCK_LEN); MDFinal (&context); /* Stop timer */ @@ -230,7 +230,7 @@ static void MDTestSuite () unsigned int len = strlen (entry->string); MDInit (&context); - MDUpdate (&context, entry->string, len); + MDUpdate (&context, (unsigned char *) entry->string, len); MDFinal (&context); printf ("MD%d (\"%s\") = ", MD, entry->string); -- 2.26.2