Re: S/MIME toolkit CMS wraper

2007-09-25 Thread sh
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? > > > > > //- wraper code > > #include > > #include > #inclu

Re: S/MIME toolkit CMS wraper

2006-11-27 Thread Bob Relyea
sh wrote: GDB give me this backtrace: 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). bob (gdb) bt #0 0x00c4b704 in PL_HashTableLookupConst () from /

Re: S/MIME toolkit CMS wraper

2006-11-23 Thread sh
I'm forget initialize library fist. sorry sh wrote: GDB give me this backtrace: (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/l

Re: S/MIME toolkit CMS wraper

2006-11-23 Thread sh
GDB give me this backtrace: (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_GetBu

Re: S/MIME toolkit CMS wraper

2006-11-22 Thread Bob Relyea
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

Re: S/MIME toolkit CMS wraper

2006-11-22 Thread Bob Relyea
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? Without review your code, I would guess your problem may fall in one of 2 a

S/MIME toolkit CMS wraper

2006-11-22 Thread sh
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? //- wraper code #include #include #include #include #include class Sm