diff options
author | Stef Walter <stefw@gnome.org> | 2012-07-26 16:54:49 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-07-26 16:54:49 +0200 |
commit | c90753485992e99de3be4e678dc6147b0a80b41d (patch) | |
tree | f36de2e75bcdca5611eb8e320f6e65a7f68831bb /tool | |
parent | 840517c4b7eafedb77d2aac62aa6c73a0241517f (diff) | |
download | gnome-keyring-c90753485992e99de3be4e678dc6147b0a80b41d.tar.gz |
tool: Initialize pkcs#11 before beginning import
https://bugzilla.gnome.org/show_bug.cgi?id=680653
Diffstat (limited to 'tool')
-rw-r--r-- | 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 b8574f22..508ccfa2 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); |