/soc/2013/ankitkv/gobjectification: d6983411079e: Added cipher i...

Ankit Vani a at nevitus.org
Sat Jun 22 07:08:32 EDT 2013


Changeset: d6983411079e175988d9ff41b8ba41db7a25db18
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-22 16:37 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d6983411079e

Description:

Added cipher includes, and hash argument to _new() of PurpleHMACCipher and PurplePBKDF2Cipher

diffstat:

 libpurple/plugins/perl/common/Cipher.xs |   6 ++++--
 libpurple/plugins/perl/common/module.h  |  10 ++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (42 lines):

diff --git a/libpurple/plugins/perl/common/Cipher.xs b/libpurple/plugins/perl/common/Cipher.xs
--- a/libpurple/plugins/perl/common/Cipher.xs
+++ b/libpurple/plugins/perl/common/Cipher.xs
@@ -205,13 +205,15 @@ MODULE = Purple::Cipher  PACKAGE = Purpl
 PROTOTYPES: ENABLE
 
 Purple::Cipher
-purple_hmac_cipher_new()
+purple_hmac_cipher_new(hash)
+	Purple::Hash hash
 
 MODULE = Purple::Cipher  PACKAGE = Purple::PBKDF2Cipher  PREFIX = purple_pbkdf2_cipher_
 PROTOTYPES: ENABLE
 
 Purple::Cipher
-purple_pbkdf2_cipher_new()
+purple_pbkdf2_cipher_new(hash)
+	Purple::Hash hash
 
 MODULE = Purple::Cipher  PACKAGE = Purple::RC4Cipher  PREFIX = purple_rc4_cipher_
 PROTOTYPES: ENABLE
diff --git a/libpurple/plugins/perl/common/module.h b/libpurple/plugins/perl/common/module.h
--- a/libpurple/plugins/perl/common/module.h
+++ b/libpurple/plugins/perl/common/module.h
@@ -25,7 +25,17 @@ typedef struct group *Purple__Group;
 #include "buddyicon.h"
 #include "certificate.h"
 #include "cipher.h"
+#include "ciphers/aescipher.h"
+#include "ciphers/des3cipher.h"
+#include "ciphers/descipher.h"
+#include "ciphers/hmaccipher.h"
+#include "ciphers/pbkdf2cipher.h"
+#include "ciphers/rc4cipher.h"
 #include "hash.h"
+#include "ciphers/md4hash.h"
+#include "ciphers/md5hash.h"
+#include "ciphers/sha1hash.h"
+#include "ciphers/sha256hash.h"
 #include "cmds.h"
 #include "connection.h"
 #include "conversations.h"



More information about the Commits mailing list