I am trying to write an XPCOM scriptable component for signing objects from JavaScript. I have been looking for documentation concerning SEC_PKCS7CreateSignedData, but there is only the source code ;-(
How can I provide SECKEYGetPasswordKey pwfn and , void * pwfn_arg to the SEC_PKCS7CreateSignedData so that the user will get the prompt for the password to the PrivateKey ? 2. What does PipUIContext do ? nsCOMPtr<nsIInterfaceRequestor> uiCxt = new PipUIContext; privKey = PK11_FindKeyByAnyCert(cert, uiCxt); If I use this function I get the prompt for the password to the PSM Internal FIPS-140-1 Cryptogr. How can I do the same for the SEC_PKCS7CreateSignedData ? Thanks very much for any hints. Mark
