[gnome-keyring] tool: Initialize pkcs#11 before beginning import
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] tool: Initialize pkcs#11 before beginning import
- Date: Mon, 6 Aug 2012 13:43:59 +0000 (UTC)
commit c90753485992e99de3be4e678dc6147b0a80b41d
Author: Stef Walter <stefw gnome org>
Date: Thu Jul 26 16:54:49 2012 +0200
tool: Initialize pkcs#11 before beginning import
https://bugzilla.gnome.org/show_bug.cgi?id=680653
tool/gkr-tool-import.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tool/gkr-tool-import.c b/tool/gkr-tool-import.c
index b8574f2..508ccfa 100644
--- a/tool/gkr-tool-import.c
+++ b/tool/gkr-tool-import.c
@@ -182,6 +182,11 @@ gkr_tool_import (int argc, char *argv[])
return 2;
}
+ if (!gcr_pkcs11_initialize (NULL, &error)) {
+ gkr_tool_handle_error (&error, "couldn't initialize pkcs11 modules");
+ return 1;
+ }
+
parser = gcr_parser_new ();
closure = g_new0 (ImportClosure, 1);
g_signal_connect (parser, "parsed", G_CALLBACK (on_parser_parsed), closure);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]