CMS_data_create

Create a CMS Data ContentInfo from bytes read from in.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_data_create(
    BIO* in,
    unsigned int flags);

Description

Equivalent to CMS_data_create_ex() with a NULL library context and property query.

Return Value

New CMS_ContentInfo of type NID_pkcs7_data, or NULL on error.

Parameters

NameDescription
inBIO supplying the content octets.
flagsCMS flags; CMS_STREAM defers CMS_final() for streaming.