[gnome-keyring/wip/nielsdg/add-portal-label] secret-portal: Set a label for an application key
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/nielsdg/add-portal-label] secret-portal: Set a label for an application key
- Date: Mon, 1 Jun 2020 12:15:07 +0000 (UTC)
commit 33b63375e4a5dc9513250c586d2dfa7760b903aa
Author: Niels De Graef <nielsdegraef gmail com>
Date: Mon Jun 1 14:13:15 2020 +0200
secret-portal: Set a label for an application key
This way, clients like Seahorse (Passwords & Keys) can show something
meaningful to the user.
daemon/dbus/gkd-secret-portal.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/daemon/dbus/gkd-secret-portal.c b/daemon/dbus/gkd-secret-portal.c
index 4663b7b9..66a56644 100644
--- a/daemon/dbus/gkd-secret-portal.c
+++ b/daemon/dbus/gkd-secret-portal.c
@@ -325,6 +325,7 @@ create_secret_value (GkdSecretPortal *self,
GckObject *item;
GckSession *session;
guint8 *value;
+ char *label;
value = g_new0 (guint8, PORTAL_DEFAULT_KEY_SIZE);
*n_value = PORTAL_DEFAULT_KEY_SIZE;
@@ -342,6 +343,10 @@ create_secret_value (GkdSecretPortal *self,
return NULL;
}
+ label = g_strdup_printf (_("Application key for %s"), app_id);
+ gck_builder_add_string (&builder, CKA_LABEL, label);
+ g_free (label);
+
gck_builder_add_string (&builder, CKA_G_COLLECTION, self->collection);
gck_builder_add_ulong (&builder, CKA_CLASS, CKO_SECRET_KEY);
gck_builder_add_boolean (&builder, CKA_TOKEN, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]