I need use the SEC_PKC7CreateEnvelopeData, has someone a simple sample code
that I could uses like a guide???
Thanks.
There is a small tool in the distribution called p7env.
http://lxr.mozilla.org/mozilla/source/security/nss/cmd/p7env/p7env.c
/Emil
> I need use the SEC_PKC7CreateEnvelopeData, has someone a simple sample code
> that I could uses like a guide???
The SEC_PKCS7 functions are now all considered deprecated. They implement
an old revision of the relevant standard. For about 4 years now, NSS has
contained an implementation of the current CMS RFC. I recommend that you
use it. Look for functions whose names begin with NSS_CMS, in nss/lib/smime.
The test programs in nss/cmd should provide your sample code. Look at
http://lxr.mozilla.org/mozilla/source/security/nss/cmd/smimetools/cmsutil.c