+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.
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);
/* 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 */
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);