Removed g_object_notify calls from ciphers and hashes soc.2013.gobjectification

Fri, 11 Oct 2013 15:34:15 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 11 Oct 2013 15:34:15 +0530
branch
soc.2013.gobjectification
changeset 35014
21864c2f543f
parent 35013
4718438d053b
child 35015
e13433a4fd88

Removed g_object_notify calls from ciphers and hashes

libpurple/ciphers/aescipher.c file | annotate | diff | comparison | revisions
libpurple/ciphers/des3cipher.c file | annotate | diff | comparison | revisions
libpurple/ciphers/descipher.c file | annotate | diff | comparison | revisions
libpurple/ciphers/hmaccipher.c file | annotate | diff | comparison | revisions
libpurple/ciphers/pbkdf2cipher.c file | annotate | diff | comparison | revisions
libpurple/ciphers/rc4cipher.c file | annotate | diff | comparison | revisions
--- a/libpurple/ciphers/aescipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/aescipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -105,8 +105,6 @@
 		memset(priv->iv, 0, sizeof(priv->iv));
 	else
 		memcpy(priv->iv, iv, len);
-
-	g_object_notify(G_OBJECT(cipher), "iv");
 }
 
 static void
@@ -125,8 +123,6 @@
 	memset(priv->key, 0, sizeof(priv->key));
 	if (len > 0)
 		memcpy(priv->key, key, len);
-
-	g_object_notify(G_OBJECT(cipher), "key");
 }
 
 static guchar *
@@ -507,10 +503,8 @@
 {
 	PurpleAESCipherPrivate *priv = PURPLE_AES_CIPHER_GET_PRIVATE(cipher);
 
-	if (mode == PURPLE_CIPHER_BATCH_MODE_CBC) {
-		g_object_notify(G_OBJECT(cipher), "batch_mode");
+	if (mode == PURPLE_CIPHER_BATCH_MODE_CBC)
 		return;
-	}
 
 	purple_debug_error("cipher-aes", "unsupported batch mode\n");
 	priv->failure = TRUE;
--- a/libpurple/ciphers/des3cipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/des3cipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -100,8 +100,6 @@
 					purple_cipher_get_key_size(PURPLE_CIPHER(priv->key2)));
 	purple_cipher_set_key(PURPLE_CIPHER(priv->key3), key + 16,
 					purple_cipher_get_key_size(PURPLE_CIPHER(priv->key3)));
-
-	g_object_notify(G_OBJECT(des3_cipher), "key");
 }
 
 static ssize_t
@@ -353,8 +351,6 @@
 	PurpleDES3CipherPrivate *priv = PURPLE_DES3_CIPHER_GET_PRIVATE(des3_cipher);
 
 	priv->mode = mode;
-
-	g_object_notify(G_OBJECT(des3_cipher), "batch_mode");
 }
 
 static PurpleCipherBatchMode
@@ -375,8 +371,6 @@
 	g_return_if_fail(len == 8);
 
 	memcpy(priv->iv, iv, len);
-
-	g_object_notify(G_OBJECT(des3_cipher), "iv");
 }
 
 /******************************************************************************
--- a/libpurple/ciphers/descipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/descipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -382,8 +382,6 @@
 		priv->decrypt_subkeys[i] = priv->encrypt_subkeys[30 - i];
 		priv->decrypt_subkeys[i + 1] = priv->encrypt_subkeys[31 - i];
 	}
-
-	g_object_notify(G_OBJECT(cipher), "key");
 }
 
 static size_t
--- a/libpurple/ciphers/hmaccipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/hmaccipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -59,7 +59,6 @@
 	PurpleHMACCipherPrivate *priv = PURPLE_HMAC_CIPHER_GET_PRIVATE(cipher);
 
 	priv->hash = g_object_ref(G_OBJECT(hash));
-	g_object_notify(G_OBJECT(cipher), "hash");
 }
 
 /*******************************************************************************
--- a/libpurple/ciphers/pbkdf2cipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/pbkdf2cipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -72,7 +72,6 @@
 	PurplePBKDF2CipherPrivate *priv = PURPLE_PBKDF2_CIPHER_GET_PRIVATE(cipher);
 
 	priv->hash = g_object_ref(G_OBJECT(hash));
-	g_object_notify(G_OBJECT(cipher), "hash");
 }
 
 /******************************************************************************
--- a/libpurple/ciphers/rc4cipher.c	Fri Oct 11 15:31:04 2013 +0530
+++ b/libpurple/ciphers/rc4cipher.c	Fri Oct 11 15:34:15 2013 +0530
@@ -88,8 +88,6 @@
 		state[y] = temp_swap;
 		x = (x + 1) % len;
 	}
-
-	g_object_notify(G_OBJECT(rc4_cipher), "key");
 }
 
 static ssize_t
@@ -242,8 +240,6 @@
 
 	priv = PURPLE_RC4_CIPHER_GET_PRIVATE(rc4_cipher);
 	priv->key_len = key_len;
-
-	g_object_notify(G_OBJECT(rc4_cipher), "key_len");
 }
 
 gint

mercurial