Wan-Teh Chang wrote:
itspki wrote:
Hi bob:
The list is new log file content, you can see NSS call C_Initialize on
time, and load my pkcs#11 library twice(DLL_PROCESS_ATTACH and
DLL_THREAD_ATTACH), and the problem still exist - login failed.
That doesn't mean your PKCS #11 library is loaded twice.
When a process loads your PKCS #11 library, you will get
a DLL_PROCESS_ATTACH and at least one DLL_THREAD_ATTACH,
because a process has at lease one thread.
Wan-Teh
Hi Wan-Teh:
see:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dllmain.asp
A thread calling the DLL entry-point function with DLL_PROCESS_ATTACH
does not call the DLL entry-point function with DLL_THREAD_ATTACH.
Now, my problem is:
(1)When pkcs11 encrypt some data, we should call
C_EncryptInit->C_EncryptUpdate->C_EncryptFinal, or
C_EncryptInit->C_Encrypt; but mozilla call the
C_EncryptInit->C_EncryptUpdate, lost C_EncryptFinal calling, it this right?
(2)Mozilla close the session '1', which created by the main process of
mozilla(I think), and then use this session to do communication with
token(call C_FindObjectsInit), is this right?
thanks advanced,
itspki
_______________________________________________
mozilla-crypto mailing list
mozilla-crypto@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-crypto