]> git.proxmox.com Git - qemu.git/commitdiff
libcacard: remove sql: prefix
authorMarc-André Lureau <mlureau@redhat.com>
Wed, 20 Mar 2013 13:07:48 +0000 (14:07 +0100)
committerAlon Levy <alevy@redhat.com>
Wed, 24 Apr 2013 08:47:45 +0000 (11:47 +0300)
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>
libcacard/vcard_emul_nss.c

index 21d468931384a8fa9ff158edd24349c677906014..6b1ca8a3c13ec03b095774b49feee37eabb0d950 100644 (file)
@@ -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) {