Naomaru Itoi wrote:

>
> Thanks for your help, I guess I know what my problem is, now; the 
> browser's in CFM, but my PKCS#11 module was in Mach-O. 
> 
> So: I downloaded MPW and compiled the PKCS#11 code with it.  I added a 
> "#pragma export list C_*" line for each function to the code.  I chose 
> "shared library", target "PowerPC Only", PowerPC Model "Carbon" in 
> CreateMake Options. 
> 
> Sadly, I got the same result.  My module doesn't seem to be called at all. 
> 
> Any advice, please?


Hi,

Unfortunately none of us on the NSS team are Mac
programmers.  (I only know how to check out the
Mozilla client's source code and build it on the
Mac.)  So you will need to ask the Mac developers
to review the way you build your PKCS#11 code.

NSS uses PR_LoadLibrary to load a PKCS#11 module
and then uses PR_FindSymbol to look up the C_*
symbols.  So your question for the Mac developers
on mozilla-macosx would be, "How do I build a
Mac shared library that can be loaded with a
PR_LoadLibrary call by Netscape 6.2 and whose
symbols can be can be looked up with PR_FindSymbol?".

Wan-Teh

Reply via email to