nsICMSMessage

lfern <[email protected]> Mon, 24 Feb 2003 19:00:08 +0100
Newsgroups gmane.comp.mozilla.crypto,gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hello,

I=B4m trying to digitaly sign a local file from javascript in a XUL=20
application. I think nsICMSMessage interface can help me (I=B4m not sure=20
it's the only way). I try to create an instance of nsICMSMessage but I=20
get an exception:

Error: uncaught exception: [Exception... "Component returned failure=20
code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.createInstance]"=20
nsresult: "0x80570018 (NS_ERROR_XPC_BAD_IID)"  location: "JS frame ::=20
chrome://testsign/content/testsign.js :: TestSign :: line 57"  data: no]

The line that throw this exception is:

message =3D
   Components.classes["@mozilla.org/nsCMSMessage;1"].
      createInstance(Components.interfaces.nsICMSMessage);

Can anyone help me?

Thanks!!!