diff options
Diffstat (limited to 'camel/md5-utils.c')
-rw-r--r-- | camel/md5-utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camel/md5-utils.c b/camel/md5-utils.c index 1300c00f9f..2ebb1533f4 100644 --- a/camel/md5-utils.c +++ b/camel/md5-utils.c @@ -364,6 +364,8 @@ md5_get_digest_from_file (const gchar *filename, guchar digest[16]) gint nb_bytes_read; FILE *fp; + printf("generating checksum\n"); + md5_init (&ctx); fp = fopen(filename, "r"); if (!fp) { @@ -377,9 +379,11 @@ md5_get_digest_from_file (const gchar *filename, guchar digest[16]) fclose(fp); return; } + md5_final (digest, &ctx); + printf("checksum done\n"); } |