Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 61779edcd4f54f0400911c5ea2d89821 > files > 13

mozilla-firefox-2.0.0.16-2mdv2009.0.src.rpm

--- mozilla/security/manager/ssl/src/nsNSSComponent.cpp.castella	2003-10-21 18:11:49.000000000 -0400
+++ mozilla/security/manager/ssl/src/nsNSSComponent.cpp	2004-10-25 05:08:35.544176541 -0400
@@ -450,6 +450,17 @@
         break;
       }
     }
+
+    // try to load castella pkcs11 provider
+    // If a module exists with the same name, delete it. 
+
+    int modType;
+    SECMOD_DeleteModule(NS_CONST_CAST(char*, "Castella"), &modType);
+#if defined(__x86_64__)
+    SECMOD_AddNewModule(NS_CONST_CAST(char*, "Castella"), PR_GetLibraryName("/usr/lib64", "castella"), 0, 0);
+#else
+    SECMOD_AddNewModule(NS_CONST_CAST(char*, "Castella"), PR_GetLibraryName("/usr/lib", "castella"), 0, 0);
+#endif
   }
 }