Re: some NSS_Initialize() questions

2009-09-14 Thread Guenter
Hi Nelson, Am 15.09.2009, 03:05 Uhr, schrieb Nelson Bolyard : 3.2.1? Yikes! I do not think that trying to write a program that is fully backwards compatible with all versions of NSS back to 3.2.1 is a noble objective. n, that wasnt meant in that way! I wrote 3.2.1 only because I saw th

Re: some NSS_Initialize() questions

2009-09-14 Thread Nelson Bolyard
On 2009-09-12 17:33 PDT, Guenter wrote: > [...] so I assume that: > rv = NSS_Initialize(certDir, "", "", "", NSS_INIT_READONLY); > works also fine with pre-3.12.0, and there's no need to specify secmod.db > as 4th argument, right? You only need to specify a non-empty string for the 4th argument

Re: some NSS_Initialize() questions

2009-09-12 Thread Guenter
Hi Nelson, thanks for your quick reply! Am 13.09.2009, 01:30 Uhr, schrieb Nelson Bolyard : On 2009-09-12 09:23 PDT, Guenter wrote: 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_Initi

Re: some NSS_Initialize() questions

2009-09-12 Thread Nelson Bolyard
On 2009-09-12 09:23 PDT, Guenter wrote: > Hi all, > I've some questions regarding proper initializing NSS. > From what I've read newer NSS now supports / prefers SQLite cert databases: Supports: yes Prefers: I would say no. NSS must be explicitly instructed to use the new SQLite3 databases in ea

some NSS_Initialize() questions

2009-09-12 Thread Guenter
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 backw