adding cryptomodule to mozilla via xpi - howto?
Tobias Anton <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
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)