Re: adding cryptomodule to mozilla via xpi - howto?

Sean Su <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Netscape Communications Corp.
Message-ID <[email protected]>
pkcs11.addmodule("eToken", "PATH...", 0, 0);  won't work because 
xpinstall does not expose pkcs11 functionality.  If there's an external 
way to add a new cryptomodule, you can do an 'execute()' call via 
xpinstall script.

Tobias Anton wrote:

> Hi everybody,
>
> I'm trying to add my Aladdin eToken driver automaticly with XPI as a new
> cryptomodule to Mozilla. It works so far that the driver is downloaded
> and safed on HD in the Mozilladir. The last but important step I can't
> get managed is to tell Mozilla "here is the module driver add it". I
> know there exist a function pkcs11.addmodule() but I can't get it work.
> Does anybody did this with XPI? Is there another way to automaticly add
> a cryptomodule/drivers over a website to Mozilla? Here is my install.js:
>
> //driverfile on server
> var driver = "eTpkcs11.dll";
> //init
> initInstall("Aladdin eToken pro Installer", "eToken", "1");
> //Mozilla programfolder
> f = getFolder("Program");
> //set folder
> setPackageFolder(f);
> //add driver to Mozilla dir
> addFile(driver);
>
> //????add driver as new cryptomodule to Mozilla ????? - what to do here?
> pkcs11.addmodule("eToken", "PATH...", 0, 0);
> //??????????
>
> //do it
> if (0 == getLastError())
>         performInstall();
> else
>         cancelInstall();
>
> thanks,
> Tobi(newbie to xpi)
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.