~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to daemon/dbus/gkd-secret-lock.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
gboolean
34
34
gkd_secret_lock (GckObject *collection, DBusError *derr)
35
35
{
 
36
        GckBuilder builder = GCK_BUILDER_INIT;
36
37
        GError *error = NULL;
37
38
        GList *objects, *l;
38
 
        GckAttributes *atts;
39
39
        GckSession *session;
40
40
 
41
 
        atts = gck_attributes_new ();
42
 
        gck_attributes_add_ulong (atts, CKA_CLASS, CKO_G_CREDENTIAL);
43
 
        gck_attributes_add_ulong (atts, CKA_G_OBJECT, gck_object_get_handle (collection));
 
41
        gck_builder_add_ulong (&builder, CKA_CLASS, CKO_G_CREDENTIAL);
 
42
        gck_builder_add_ulong (&builder, CKA_G_OBJECT, gck_object_get_handle (collection));
44
43
 
45
44
        session = gck_object_get_session (collection);
46
45
        g_return_val_if_fail (session, FALSE);
47
46
 
48
 
        objects = gck_session_find_objects (session, atts, NULL, &error);
 
47
        objects = gck_session_find_objects (session, gck_builder_end (&builder), NULL, &error);
49
48
 
50
 
        gck_attributes_unref (atts);
51
49
        g_object_unref (session);
52
50
 
53
51
        if (error != NULL) {