1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00

sip-provider: Add debugging to password lookup

(cherry picked from commit 9c5d7a58a1)
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-05-12 12:25:32 +02:00
parent 23239e5f56
commit f6a4acb3dd

View file

@ -140,6 +140,8 @@ on_origin_pw_looked_up (GObject *source,
else else
id = g_strdup (data->name); id = g_strdup (data->name);
g_debug ("Password looked up for %s", id);
host = g_key_file_get_string (data->key_file, data->name, "Host", NULL); host = g_key_file_get_string (data->key_file, data->name, "Host", NULL);
user = g_key_file_get_string (data->key_file, data->name, "User", NULL); user = g_key_file_get_string (data->key_file, data->name, "User", NULL);
display_name = g_key_file_get_string (data->key_file, data->name, "DisplayName", NULL); display_name = g_key_file_get_string (data->key_file, data->name, "DisplayName", NULL);
@ -197,6 +199,8 @@ on_origin_pw_looked_up (GObject *source,
can_tel, can_tel,
FALSE); FALSE);
} }
static void static void
new_origin_from_keyfile_secret (CallsSipProvider *self, new_origin_from_keyfile_secret (CallsSipProvider *self,
GKeyFile *key_file, GKeyFile *key_file,
@ -223,6 +227,7 @@ new_origin_from_keyfile_secret (CallsSipProvider *self,
data->key_file = g_key_file_ref (key_file); data->key_file = g_key_file_ref (key_file);
data->name = g_strdup (name); data->name = g_strdup (name);
g_debug ("Looking up password for account '%s'", name);
secret_password_lookup (calls_secret_get_schema (), NULL, secret_password_lookup (calls_secret_get_schema (), NULL,
on_origin_pw_looked_up, data, on_origin_pw_looked_up, data,
CALLS_SERVER_ATTRIBUTE, host, CALLS_SERVER_ATTRIBUTE, host,