BIO_new_CMS

Wrap a CMS ContentInfo in a filter BIO that writes indefinite-length BER to out.

Synopsis

Declared in <openssl/cms.h>

BIO*
BIO_new_CMS(
    BIO* out,
    CMS_ContentInfo* cms);

Return Value

New filter BIO, or NULL on failure; free with BIO_free_all().

Parameters

NameDescription
outUnderlying BIO that receives the encoded CMS structure.
cmsCMS ContentInfo to encode through the filter.