Wolfgang Rosenauer schrieb:

>> Are you trying to use NSS_InitWithMerge to create a new cert9.DB
>> where none existed before?
> 
> Yes. NSS_InitWithMerge is used regardless of an existing cert9.db (and
> even cert8.db). The conversion function uses pretty much what is on
> https://wiki.mozilla.org/NSS_Shared_DB#Type_A mentioned as "simple
> update". Only if NSS_InitWithMerge fails it does NSS_Initialize instead
> to create the new db but that didn't happen.
> 
>> I'm pretty sure that that function has not been tested for that purpose.
>> Perhaps it needs to detect the case where the "target" DB does not
>> already exist and handle it differently.
> 
> As far as I can see https://wiki.mozilla.org/NSS_Shared_DB is unclear
> about the fact if it can be used to create a db from scratch.

I can confirm that NSS_InitWithMerge doesn't create a working database
here at least if none existed before. So it should either fail or handle
that case in future versions. I'll try some more things.

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

Reply via email to