David Corcoran wrote:
I just verified the below patch fixes the loading problem with Firefox 1.0

Oh, thanks. Works perfect. A glue what was the problem?

Karsten


Thanks, Dave

On Jan 21, 2005, at 8:09 AM, Chris Osgood wrote:

On Fri, 2005-01-21 at 11:17 +0100, Karsten Ohme wrote:

/* If preferences request non-threaded mode then force this flag */
        if (!st.prefs.threaded) {
-->>            init_args->flags |=CKF_LIBRARY_CANT_CREATE_OS_THREADS;
        }

I do not know the reason(Anybody does?). It seems to be a ordinary OR.
My solution was to try to set the Threaded parameter in the file
pkcs11rc to TRUE. So Thunderbird does not crash.


Try the following patch:

--- p11_general.c.old   2005-01-21 08:01:30.000000000 -0500
+++ p11_general.c 2005-01-21 07:56:06.000000000 -0500
@@ -41,11 +41,11 @@
         rv = CKR_CRYPTOKI_ALREADY_INITIALIZED;
     else
     {
-        if (!pInitArgs)
-            init_args = &blank_init_args;
-        else
+        init_args = &blank_init_args;
+
+        if (pInitArgs)
         {
-            init_args = (CK_C_INITIALIZE_ARGS *)pInitArgs;
+            memcpy(init_args, pInitArgs,  sizeof(CK_C_INITIALIZE_ARGS));
             log_Log(LOG_LOW, "Init flags: 0x%X", init_args->flags);
         }

--  // Chris

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle


------------------------------------------------------------------------ ------------
David Corcoran [EMAIL PROTECTED]
Identity Alliance http://www.identityalliance.com


Smart Cards, Biometrics, Training, Identity Management
------------------------------------------------------------------------ -------------


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to