On Wed, Jul 08, 2009, Chris Bare wrote:

> What is the proper way to access this data:
> 
>               data = cms->d.signedData->encapContentInfo->eContent->data;
>               length = cms->d.signedData->encapContentInfo->eContent->length;
> 
> The above only works if I include a private header: crypto/cms/cms_lcl.h

CMS_get0_content(). This returns type (ASN1_OCTET_STRING **) which means you
can set the content as well if it is absent.

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