Hello Robert,

where can I get in touch with the NSS people you told me about? I want to try to do those modifications.

I'm facing following problem right now, maybe you can help me:

in /security/nss/lib/pk11wrap/pk11util.c there is the function
SECMODModule *
SECMOD_GetInternalModule(void)
{
   return internalModule;
}

at line 134.

I now know what a SECMODModuleStr is, but can't find where "internalModule" is associated to such a struct.

If I understand the structure correctly, I usually have a module of type SECMODModule (struct SECMODModuleStr) that holds flags, references to several other structures, and a reference-array to all PK11SlotInfo-Objects of that module, and themselves hold flags and references to PK11Symkey-Objects. The PK11Symkey-Objects include infos about the keys they describe, and a SECItem, the key itself.

Now, in nsSDR, PK11GetInternalKeySlot(); adds a refcount (PK11ReferenceSlot()) to one of its slots ([0] or [1]), and returns slots[0] (or a ref to it) of the SECMODModule "InternalModule" if FIPS (still not exactly sure how FIPS mode works), slots[1] if not FIPS. But where do that InternalModule and its slots come from? I haven't been able to find out for the moment. Maybe after some initialization or something?

Thks a lot for a little explanation ^^

Marc




"Robert Relyea" <rrel...@redhat.com> schrieb im Newsbeitrag news:mailman.6355.1256580188.4294.dev-tech-cry...@lists.mozilla.org...
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to