sh wrote:
Oh, you aren't calling any form of NSS_Init (see nss.h for the various flavors). Unless you initialize NSS, most of your NSS subsystems will not be available (In this case OID processing).GDB give me this backtrace:
bob
(gdb) bt #0 0x00c4b704 in PL_HashTableLookupConst () from /usr/lib/libplds4.so #1 0x06c5c4cf in SECOID_FindOID () from /usr/lib/libnss3.so#2 0x00d426c5 in NSS_CMSContentInfo_GetContentTypeTag () from /usr/lib/libsmime3.so #3 0x00d4372b in NSS_CMSContentInfo_GetBulkKeySize () from /usr/lib/libsmime3.so #4 0x06c58c6a in NSS_Get_SECOID_AlgorithmIDTemplate () from /usr/lib/libnss3.so#5 0x06c597cc in SEC_ASN1DecoderUpdate () from /usr/lib/libnss3.so #6 0x00d43b6d in NSS_CMSDecoder_Update () from /usr/lib/libsmime3.so#7 0x0804e0a4 in smime::SmimeDecoder::decode_message_append (this=0x862a7a8, buffer=0x862a060, lenght=1857, isFinal=true) at SmimeDecoder.cpp:111 #8 0x0804dfbe in smime::SmimeDecoder::PutCipherText (this=0x862a7a8, buffer=0x862a060, lenght=1857, isFinal=true) at SmimeDecoder.cpp:76#9 0x0804c609 in main (argc=1, argv=0xbff93444) at nss.cpp:171 Bob Relyea wrote:Bob Relyea wrote:sh wrote:Hi there, I need a little CMS wraper. I need decode S/MIME message chunk by chunk. I start make it based on cmsutil. But I receive "segmentation fault" every time on call NSS_CMSDecoder_Update. What's wrong?2) (most likely) you are passing a C++ method as one or more of your callbacks.Hmm I should have looked at the code more closely. You are using thunks to do translations (You just don't have the declarations of the thunks). Your best bet would be to grab a debug version of NSS and get a stack traceback.bob_______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto