gimp r25294 - in trunk: . plug-ins/common



Author: muks
Date: Sat Mar 29 02:28:39 2008
New Revision: 25294
URL: http://svn.gnome.org/viewvc/gimp?rev=25294&view=rev

Log:
2008-03-28  Mukund Sivaraman  <muks mukund org>

        * plug-ins/common/lcms.c: gimp_md5_get_digest() is deprecated;
        using GChecksum instead.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/lcms.c

Modified: trunk/plug-ins/common/lcms.c
==============================================================================
--- trunk/plug-ins/common/lcms.c	(original)
+++ trunk/plug-ins/common/lcms.c	Sat Mar 29 02:28:39 2008
@@ -733,9 +733,16 @@
                          guchar      *digest)
 {
   if (digest)
-    gimp_md5_get_digest (data + sizeof (icHeader),
-                         len - sizeof (icHeader),
-                         digest);
+    {
+      GChecksum *md5 = g_checksum_new (G_CHECKSUM_MD5);
+      gsize length;
+
+      g_checksum_update (md5, (guchar *) data + sizeof (icHeader),
+                         len - sizeof (icHeader));
+
+      g_checksum_get_digest (md5, digest, &length);
+      g_checksum_free (md5);
+    }
 }
 
 static cmsHPROFILE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]