Hi Akkshayaa,
The Device Manager in Mozilla PSM registers the PKCS#11 module 
persistently with the browser's Module-DB.
You might want to compare your code with Mozilla PSM Device Manager code 
for loading PKCS#11 module  :
      
http://lxr.mozilla.org/mozilla/source/security/manager/pki/resources/content/device_manager.js#459
      
http://lxr.mozilla.org/mozilla/source/security/manager/ssl/src/nsCrypto.cpp#3017
 

BTW, once PKCS#11 module is registered, browser will automatically load 
the module every time you open the browser.
Your add-on need not load it.
--
Subrata Mazumdar

Akkshayaa Venkatram wrote:
> Hi
> I am a new member to this group.
> I am developing a firefox addon for which i am using smart card bundle 
> and the opensc.dll
> The addon that i am creating has the opensc.dll in the components 
> folder of the extension and everytime the extension is installed, the 
> security module gets loaded into the firefox browser. This works fine 
> during every new installation. But when i close firefox window and try 
> reopening it, i can only see the place holder for the security module 
> but the actual module is missing, which doesn't let me use the smart 
> card.
>
> Can i someone help me figure out where the problem is? I was wondering 
> if any flag has to be set in the dll to make the loaded module 
> persistent. However, if i try to load the opensc.dll from C:\program 
> files or any other stable location, it persists and doesn't get 
> removed. But i don't want the module to exist when the firefox 
> extension is removed and hence want to load the module from the 
> extension folder.
>
> Hoping to receive a reply..
> Thanks in advance
>
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to