Hi all,
I've some questions regarding proper initializing NSS.
From what I've read newer NSS now supports / prefers SQLite cert databases:
https://wiki.mozilla.org/NSS_Shared_DB_And_LINUX#Type_3_packages:_Libraries
now what I need to know is when I want to open the certdb readonly and in a backward-compatible way is it valid to allways prefix the certdb path with sql: like:
char *certDir = PR_smprintf("sql:%s", SSL_DIR);
rv = NSS_Initialize(certDir, NULL, NULL, NULL, NSS_INIT_READONLY);
does NSS then still proper initialize even if SSL_DIR points to a folder holding an older DBM certdb (certX, keyX, secmod) ? Which is the lowest NSS version which understands and works with the sql: prefix?

Then I've seen code like:
rv = NSS_Initialize(certDir, NULL, NULL, "secmod.db", NSS_INIT_READONLY);
is it really necessary to specify secmod.db with NSS_Initialize() ?
finally in the NSS docs I found somewhere a sample for initializing where the parameters are not NULL but empty strings:
rv = NSS_Initialize(certDir, "", "", "", NSS_INIT_READONLY);
what is the correct way?

thanks, Günter.

--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to