1
From: Daiki Ueno <dueno@src.gnome.org>
2
Date: Fri, 16 Mar 2018 16:43:29 +0100
3
Subject: ssh-agent: Use the same parameters for accessing login keyring
5
When looking up a secret in the login keyring, do not supply any
6
schema in the criteria, while using "org.freedesktop.Secret.Generic"
7
as schema when storing it. This is for backward compatibility with
8
gnome-keyring 2.29, which used "org.gnome.keyring.EncryptionKey" as
11
In addtion, use the same label for the newly stored passwords as
14
https://bugzilla.gnome.org/show_bug.cgi?id=794368
16
daemon/ssh-agent/gkd-ssh-agent-service.c | 5 +++--
17
1 file changed, 3 insertions(+), 2 deletions(-)
19
diff --git a/daemon/ssh-agent/gkd-ssh-agent-service.c b/daemon/ssh-agent/gkd-ssh-agent-service.c
20
index 1fad267..451c6d0 100644
21
--- a/daemon/ssh-agent/gkd-ssh-agent-service.c
22
+++ b/daemon/ssh-agent/gkd-ssh-agent-service.c
23
@@ -246,13 +246,14 @@ ensure_key (GkdSshAgentService *self,
24
argv[1] = info->filename;
26
fields = g_hash_table_new (g_str_hash, g_str_equal);
27
- g_hash_table_insert (fields, "xdg:schema", "org.freedesktop.Secret.Generic");
28
unique = g_strdup_printf ("ssh-store:%s", info->filename);
29
g_hash_table_insert (fields, "unique", unique);
31
- label = info->comment[0] != '\0' ? info->comment : _("Unnamed");
32
+ label = g_strdup_printf (_("Unlock password for: %s"),
33
+ info->comment[0] != '\0' ? info->comment : _("Unnamed"));
35
interaction = gkd_login_interaction_new (self->interaction, NULL, label, fields);
37
askpass = gcr_ssh_askpass_new (interaction);
38
g_object_unref (interaction);