From 8176cca8d02c90ed2b6ec3f48f95e7209e16389b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 16 Feb 2000 16:03:14 +0000 Subject: Make md5_final take the MD5Context first, like md5_init and md5_update. svn path=/trunk/; revision=1796 --- camel/md5-utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'camel/md5-utils.c') diff --git a/camel/md5-utils.c b/camel/md5-utils.c index 2ebb1533f4..7363eaec40 100644 --- a/camel/md5-utils.c +++ b/camel/md5-utils.c @@ -147,7 +147,7 @@ md5_update (MD5Context *ctx, const guchar *buf, guint32 len) * copy the final md5 hash to a bufer **/ void -md5_final (guchar digest[16], MD5Context *ctx) +md5_final (MD5Context *ctx, guchar digest[16]) { guint32 count; guchar *p; @@ -313,7 +313,7 @@ md5_get_digest (const gchar *buffer, gint buffer_size, guchar digest[16]) md5_init (&ctx); md5_update (&ctx, buffer, buffer_size); - md5_final (digest, &ctx); + md5_final (&ctx, digest); } @@ -341,7 +341,7 @@ md5_get_digest_from_stream (CamelStream *stream, guchar digest[16]) nb_bytes_read = camel_stream_read (stream, tmp_buf, 1024); } - md5_final (digest, &ctx); + md5_final (&ctx, digest); } @@ -381,7 +381,7 @@ md5_get_digest_from_file (const gchar *filename, guchar digest[16]) } - md5_final (digest, &ctx); + md5_final (&ctx, digest); printf("checksum done\n"); } -- cgit