Skip to content

Commit

Permalink
libcacard: remove sql: prefix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Alon Levy <[email protected]>
  • Loading branch information
Marc-André Lureau authored and Alon Levy committed Apr 24, 2013
1 parent c9495ee commit 667e0b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libcacard/vcard_emul_nss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 667e0b4

Please sign in to comment.