diff options
author | Stef Walter <stef@memberwebs.com> | 2010-08-28 23:01:53 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-08-28 23:01:53 +0000 |
commit | 1d9ff263ef2a5ddd8faa4d2297e816e3d9cd363b (patch) | |
tree | 0ff54b5e7dfbf1c38999c057d3c591c63d3cfd5c /tool | |
parent | 999087a9836e972253f4a72b398e52530a106c98 (diff) | |
parent | 9ea8cbd7a7cfee35c723c7a0b24b9b252389a5aa (diff) | |
download | gnome-keyring-1d9ff263ef2a5ddd8faa4d2297e816e3d9cd363b.tar.gz |
Merge branch 'gck-work' into ui-widgets
Diffstat (limited to 'tool')
-rw-r--r-- | tool/Makefile.am | 2 | ||||
-rw-r--r-- | tool/gkr-tool-import.c | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tool/Makefile.am b/tool/Makefile.am index 9bb405d3..e3252f59 100644 --- a/tool/Makefile.am +++ b/tool/Makefile.am @@ -17,7 +17,7 @@ gnome_keyring_CFLAGS = \ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" gnome_keyring_LDADD = \ - $(top_builddir)/gp11/libgp11.la \ + $(top_builddir)/gck/libgck.la \ $(top_builddir)/gcr/libgcr.la \ $(top_builddir)/egg/libegg.la \ $(GTHREAD_LIBS) \ diff --git a/tool/gkr-tool-import.c b/tool/gkr-tool-import.c index 99c38903..0a45777c 100644 --- a/tool/gkr-tool-import.c +++ b/tool/gkr-tool-import.c @@ -25,7 +25,7 @@ #include "gkr-tool.h" -#include "gp11/gp11.h" +#include "gck/gck.h" #include "gcr/gcr-importer.h" @@ -40,26 +40,26 @@ static GOptionEntry import_entries[] = { }; static void -on_imported (GcrImporter *importer, GP11Object *object) +on_imported (GcrImporter *importer, GckObject *object) { - GP11Attributes *attrs; - GP11Attribute *id; + GckAttributes *attrs; + GckAttribute *id; CK_OBJECT_CLASS klass; const gchar *message; GError *err = NULL; gchar *label, *hex; - attrs = gp11_attributes_new_empty (CKA_LABEL, CKA_CLASS, CKA_ID, GP11_INVALID); - if (!gp11_object_get_full (object, attrs, NULL, &err)) { + attrs = gck_attributes_new_empty (CKA_LABEL, CKA_CLASS, CKA_ID, GCK_INVALID); + if (!gck_object_get_full (object, attrs, NULL, &err)) { gkr_tool_handle_error (&err, "couldn't get imported object info"); return; } - if (!gp11_attributes_find_string (attrs, CKA_LABEL, &label)) + if (!gck_attributes_find_string (attrs, CKA_LABEL, &label)) label = g_strdup ("unknown"); - if (!gp11_attributes_find_ulong (attrs, CKA_CLASS, &klass)) + if (!gck_attributes_find_ulong (attrs, CKA_CLASS, &klass)) klass = CKO_DATA; - id = gp11_attributes_find (attrs, CKA_ID); + id = gck_attributes_find (attrs, CKA_ID); switch (klass) { case CKO_CERTIFICATE: @@ -89,8 +89,8 @@ on_imported (GcrImporter *importer, GP11Object *object) g_print ("\tID: %s\n", hex); g_free (hex); } - - gp11_attributes_unref (attrs); + + gck_attributes_unref (attrs); g_free (label); } |