--- 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));