[gnome-keyring] [secret-store] Fix the CKA_TRUSTED attribute for collections.



commit d9ef94455d115d8fed29a3071b5b19ca632fb932
Author: Stef Walter <stef memberwebs com>
Date:   Wed Sep 1 02:59:13 2010 +0000

    [secret-store] Fix the CKA_TRUSTED attribute for collections.
    
    This attribute signifies whether the collection is properly encrypted
    or not. Fix broken boolean check.

 pkcs11/secret-store/gkm-secret-collection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/secret-store/gkm-secret-collection.c b/pkcs11/secret-store/gkm-secret-collection.c
index 4b6cb69..1157255 100644
--- a/pkcs11/secret-store/gkm-secret-collection.c
+++ b/pkcs11/secret-store/gkm-secret-collection.c
@@ -414,7 +414,7 @@ gkm_secret_collection_get_attribute (GkmObject *base, GkmSession *session, CK_AT
 		g_return_val_if_fail (identifier, CKR_GENERAL_ERROR);
 		return gkm_attribute_set_bool (attr, g_str_equal (identifier, "login"));
 	case CKA_TRUSTED:
-		if (self->sdata)
+		if (!self->sdata)
 			return gkm_attribute_set_bool (attr, CK_FALSE);
 		master = gkm_secret_data_get_master (self->sdata);
 		return gkm_attribute_set_bool (attr, (master && !gkm_secret_is_trivially_weak (master)));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]