libpurple/protocols/gg/oauth/oauth.c

branch
soc.2013.gobjectification
changeset 34567
ea5103f66b0e
parent 34556
087db73b115d
child 35030
5eef1ddd79dc
--- a/libpurple/protocols/gg/oauth/oauth.c	Sun Jun 16 03:46:10 2013 +0530
+++ b/libpurple/protocols/gg/oauth/oauth.c	Sun Jun 16 05:59:31 2013 +0530
@@ -26,8 +26,8 @@
 #include "oauth.h"
 
 #include "oauth-parameter.h"
-#include "ciphers/hmac.h"
-#include "ciphers/sha1.h"
+#include "ciphers/hmaccipher.h"
+#include "ciphers/sha1hash.h"
 
 char *gg_oauth_static_nonce;		/* dla unit testów */
 char *gg_oauth_static_timestamp;	/* dla unit testów */
@@ -49,10 +49,11 @@
 
 static gchar *gg_hmac_sha1(const char *key, const char *message)
 {
-	PurpleCipher *cipher, *hash;
+	PurpleCipher *cipher;
+	PurpleHash *hash;
 	guchar digest[20];
 
-	hash = purple_sha1_cipher_new();
+	hash = purple_sha1_hash_new();
 	cipher = purple_hmac_cipher_new(hash);
 
 	purple_cipher_set_key(cipher, (guchar *)key, strlen(key));

mercurial