aboutsummaryrefslogtreecommitdiff
path: root/libcacard
diff options
context:
space:
mode:
authorMarc-André Lureau <mlureau@redhat.com>2013-03-20 14:07:48 +0100
committerAlon Levy <alevy@redhat.com>2013-04-24 11:47:45 +0300
commit667e0b4b6806d53e0b46e29a15d24427ef958c78 (patch)
tree20cc42b8a7dbdbe04c1f00593777630dda269b44 /libcacard
parentc9495ee9eb57786f5a60d4591bb186b23f6b6bef (diff)
downloadqemu-arm-667e0b4b6806d53e0b46e29a15d24427ef958c78.tar.gz
libcacard: remove sql: prefix
For some reason, with sql:/ prefix, the PKCS11 modules are not loaded. This patch goes on top of Alon smartcard series. Signed-off-by: Marc-André Lureau <mlureau@redhat.com> Reviewed-by: Alon Levy <alevy@redhat.com>
Diffstat (limited to 'libcacard')
-rw-r--r--libcacard/vcard_emul_nss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c
index 21d4689313..6b1ca8a3c1 100644
--- a/libcacard/vcard_emul_nss.c
+++ b/libcacard/vcard_emul_nss.c
@@ -893,7 +893,7 @@ vcard_emul_init(const VCardEmulOptions *options)
if (options->nss_db) {
rv = NSS_Init(options->nss_db);
} else {
- gchar *path, *db;
+ gchar *path;
#ifndef _WIN32
path = g_strdup("/etc/pki/nssdb");
#else
@@ -905,10 +905,8 @@ vcard_emul_init(const VCardEmulOptions *options)
path = g_build_filename(
g_get_system_config_dirs()[0], "pki", "nssdb", NULL);
#endif
- db = g_strdup_printf("sql:%s", path);
- rv = NSS_Init(db);
- g_free(db);
+ rv = NSS_Init(path);
g_free(path);
}
if (rv != SECSuccess) {