hooway wrote:
> 
> We are making a PKCS11 token dll for CMS server. But we met some problems.
> and cause windows shut down. We want to debug our dll to find the reason.
> But how to do it under CMS server. It's always working as a NT Service. Is
> there any method to force it working not in Service mode.

I recommend that you debug your PKCS11 module using NSS's utility programs
and its test client and server.   When your code works correctly with 
certutil, it has a better chance of working with CMS.  

Also, PKCS#11 modules have a bit somewhere that says whether the module 
can be used in a multi-threaded environment or not.  One thing for you to 
try is setting the bit tot he value that says that it does not support
multi-threading.  Then, NSS will single-thread all access to the token.
If that fixes the problem, then you know the problem has to do with your
module's use of locks.  You could then try to fix that, or just leave it
set as a single-threaded module.

Please continue to post all followup messages to this newsgroup.  THanks.

--
Nelson Bolyard            
Disclaimer:                  I speak for myself, not for Netscape

Reply via email to