I wrote a small util to sign a form in mozilla.
am actually using NSS, all the calls work fine,
but i get a core dump in the SEC_PKCS7Encode.
Pls help me.
Heres the backtrace from GDB:
========= START BACKTRACE =========
#6 0x0087689e in memset () from /lib/tls/libc.so.6
#7 0x006d1d9c in vtable for nsXPConnect ()
from /home/tux/pki/mozilla/mozilla-1.6/dist/bin/components/libxpconnect.so
#8 0x007180a0 in PK11_DoPassword (slot=0x9da8690, loadCerts=1, wincx=0x0) at pk11slot.c:1226
#9 0x007178c3 in PK11_Authenticate (slot=0x9da8690, loadCerts=1, wincx=0x0) at pk11slot.c:914
#10 0x00710df6 in PK11_FindKeyByAnyCert (cert=0xa00e960, wincx=0x0) at pk11cert.c:2566
#11 0x007068e8 in sec_pkcs7_encoder_sig_and_certs (cinfo=0xa026870, pwfn=0, pwfnarg=0x0) at p7encode.c:974
#12 0x0070702a in SEC_PKCS7PrepareForEncode (cinfo=0xa026870, bulkkey=0x0, pwfn=0, pwfnarg=0x0)
at p7encode.c:1232
#13 0x00707070 in SEC_PKCS7Encode (cinfo=0xa026870, outputfn=0x701324 <EncodeCallback>, outputarg=0x0,
bulkkey=0x0, pwfn=0, pwfnarg=0x0) at p7encode.c:1273
======= END BACKTRACE ========
have searched a lot regarding this, but failed to get an answer.
This is perhaps THE most frequently asked question in this newsgroup. More searching through past messages in this group should reveal the answer.
Does mozilla support signing before submitting a form. How do we sign a form? Netscape 4.x crypto supported it, do the versions of mozilla support it too?
-- Try before you fail
_______________________________________________ mozilla-crypto mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-crypto
