On Thu, Jun 03, 2010, Chris Bare wrote:

> the code below works fine if signed = true.
> If signed = false, i2d_CMS_bio_stream seg faults.
> I've looked through the code inside CMS_sign and didn't see anything else
> obvious that I should call.
> 
> any suggestions on what I'm missing for an unsigned CMS?

Depends on what you mean by an "unsigned CMS". A CMS signedData structure
without signatures is normally just used to sent certificates and not include
any content.

If you want a CMS structure that sends data only you need the "data" type. You
can create one using CMS_data_create(). It's not currently documented but the
cms utility uses it.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to