aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-server-sasl-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-server-sasl-handler.c')
-rw-r--r--libempathy/empathy-server-sasl-handler.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c
index b18d1a735..e98134ebb 100644
--- a/libempathy/empathy-server-sasl-handler.c
+++ b/libempathy/empathy-server-sasl-handler.c
@@ -20,7 +20,8 @@
#include "config.h"
#include "empathy-server-sasl-handler.h"
-#include "empathy-keyring.h"
+#include <tp-account-widgets/tpaw-keyring.h>
+
#include "empathy-sasl-mechanisms.h"
#include "extensions.h"
@@ -67,7 +68,7 @@ empathy_server_sasl_handler_set_password_cb (GObject *source,
{
GError *error = NULL;
- if (!empathy_keyring_set_account_password_finish (TP_ACCOUNT (source), result,
+ if (!tpaw_keyring_set_account_password_finish (TP_ACCOUNT (source), result,
&error))
{
DEBUG ("Failed to set password: %s", error->message);
@@ -102,7 +103,7 @@ empathy_server_sasl_handler_get_password_async_cb (GObject *source,
priv = EMPATHY_SERVER_SASL_HANDLER (user_data)->priv;
- password = empathy_keyring_get_account_password_finish (TP_ACCOUNT (source),
+ password = tpaw_keyring_get_account_password_finish (TP_ACCOUNT (source),
result, &error);
if (password != NULL)
@@ -133,7 +134,7 @@ empathy_server_sasl_handler_init_async (GAsyncInitable *initable,
priv->async_init_res = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, empathy_server_sasl_handler_new_async);
- empathy_keyring_get_account_password_async (priv->account,
+ tpaw_keyring_get_account_password_async (priv->account,
empathy_server_sasl_handler_get_password_async_cb, self);
}
@@ -354,7 +355,7 @@ auth_cb (GObject *source,
else
{
DEBUG ("Saving password in keyring");
- empathy_keyring_set_account_password_async (priv->account,
+ tpaw_keyring_set_account_password_async (priv->account,
priv->password, priv->save_password,
empathy_server_sasl_handler_set_password_cb,
NULL);
@@ -429,7 +430,7 @@ empathy_server_sasl_handler_provide_password (
if (!may_save_response)
{
/* delete any password present, it shouldn't be there */
- empathy_keyring_delete_account_password_async (priv->account, NULL, NULL);
+ tpaw_keyring_delete_account_password_async (priv->account, NULL, NULL);
}
/* Additionally, if we implement Ch.I.CredentialsStorage, inform that