gobjectification: 1971e9d6: All our hashes need specific data before...

qulogic at pidgin.im qulogic at pidgin.im
Sun Jul 11 04:05:43 EDT 2010


----------------------------------------------------------------------
Revision: 1971e9d61f842b4b0294ffb7f1acff7768ee9f6f
Parent:   5245f8f75b2ad13def4ac6e1e5faabdbc771ae2c
Author:   qulogic at pidgin.im
Date:     07/11/10 03:53:05
Branch:   im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/1971e9d61f842b4b0294ffb7f1acff7768ee9f6f

Changelog: 

All our hashes need specific data before doing anything, so call 
reset for each new instance.

Changes against parent 5245f8f75b2ad13def4ac6e1e5faabdbc771ae2c

  patched  libpurple/cipher/md4hash.c
  patched  libpurple/cipher/md5hash.c
  patched  libpurple/cipher/sha1hash.c
  patched  libpurple/cipher/sha256hash.c

-------------- next part --------------
============================================================
--- libpurple/cipher/md4hash.c	4e10b3ef8f10cdb6bd6c155dea48d6f965b81aa3
+++ libpurple/cipher/md4hash.c	dd8a1f6a0c9a83e5275affac8f64ed54bca96074
@@ -296,8 +296,8 @@ purple_md4_hash_get_gtype(void) {
 			NULL,
 			sizeof(PurpleMD4Hash),
 			0,
+			(GInstanceInitFunc)purple_hash_reset,
 			NULL,
-			NULL,
 		};
 
 		static const GInterfaceInfo hmac_info = {
============================================================
--- libpurple/cipher/md5hash.c	52f2969fb31adcd2b035156e08982eebc15cc8f1
+++ libpurple/cipher/md5hash.c	a613ab3c5941410fa2665a9943797afcb28e6f35
@@ -312,7 +312,11 @@ purple_md5_hash_get_gtype(void) {
 			NULL,
 			sizeof(PurpleMD5Hash),
 			0,
+#if GLIB_CHECK_VERSION(2,16,0)
 			NULL,
+#else
+			(GInstanceInitFunc)purple_hash_reset,
+#endif
 			NULL,
 		};
 		static const GInterfaceInfo hmac_info = {
============================================================
--- libpurple/cipher/sha1hash.c	a017ee80ca167035092537b92ea05faa23de4204
+++ libpurple/cipher/sha1hash.c	4e35b1c70466f16f94a8cd8d3e8cc91c17ec008b
@@ -246,7 +246,11 @@ purple_sha1_hash_get_gtype(void) {
 			NULL,
 			sizeof(PurpleSHA1Hash),
 			0,
+#if GLIB_CHECK_VERSION(2,16,0)
 			NULL,
+#else
+			(GInstanceInitFunc)purple_hash_reset,
+#endif
 			NULL,
 		};
 		static const GInterfaceInfo hmac_info = {
============================================================
--- libpurple/cipher/sha256hash.c	381037a919be4ea070d8a350ae896ea2bc751282
+++ libpurple/cipher/sha256hash.c	ac821bf660e7932b7df7d6da2c75fb9f99a280a8
@@ -256,7 +256,11 @@ purple_sha256_hash_get_gtype(void) {
 			NULL,
 			sizeof(PurpleSHA256Hash),
 			0,
+#if GLIB_CHECK_VERSION(2,16,0)
 			NULL,
+#else
+			(GInstanceInitFunc)purple_hash_reset,
+#endif
 			NULL,
 		};
 		static const GInterfaceInfo hmac_info = {


More information about the Commits mailing list