summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-25 17:06:39 +0200
committerStef Walter <stefw@gnome.org>2012-06-27 10:47:20 +0200
commit3b12a96aa41af835a651c6a62def94472346969d (patch)
treea9c8b08eb311f73daf66f3c41c58d98bcdcfc50b /daemon
parentade50dce2dc18c27d81e0dc5de35748dd308ae81 (diff)
secret-store: Support the xdg:schema attribute correctly
* libsecret uses that attribute to store the 'schema' describing the other attributes. * The old way of having a special 'Type' dbus argument, or CKA_G_SCHEMA pkcs#11 attribute is deprecated ... to be more inline with the Secret Service spec.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/dbus/gkd-secret-property.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/dbus/gkd-secret-property.c b/daemon/dbus/gkd-secret-property.c
index 590836c4..3086fefd 100644
--- a/daemon/dbus/gkd-secret-property.c
+++ b/daemon/dbus/gkd-secret-property.c
@@ -83,6 +83,7 @@ property_to_attribute (const gchar *prop_name, const gchar *interface,
*attr_type = CKA_LABEL;
*data_type = DATA_TYPE_STRING;
+ /* Non-standard property for type schema */
} else if (g_str_equal (prop_name, "Type")) {
*attr_type = CKA_G_SCHEMA;
*data_type = DATA_TYPE_STRING;
@@ -121,6 +122,7 @@ attribute_to_property (CK_ATTRIBUTE_TYPE attr_type, const gchar **prop_name, Dat
*prop_name = "Label";
*data_type = DATA_TYPE_STRING;
break;
+ /* Non-standard property for type schema */
case CKA_G_SCHEMA:
*prop_name = "Type";
*data_type = DATA_TYPE_STRING;