Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PKCS#7 SEC_PKC7CreateEnvelopeData

0 views
Skip to first unread message

Miguel

unread,
Jul 19, 2004, 5:55:03 AM7/19/04
to
Hello

I need use the SEC_PKC7CreateEnvelopeData, has someone a simple sample code
that I could uses like a guide???

Thanks.

Emil Assarsson

unread,
Jul 19, 2004, 9:31:35 AM7/19/04
to
Hi,

There is a small tool in the distribution called p7env.

http://lxr.mozilla.org/mozilla/source/security/nss/cmd/p7env/p7env.c

/Emil

Nelson B

unread,
Jul 19, 2004, 3:06:15 PM7/19/04
to
Miguel wrote:

> 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

0 new messages