CMS_add1_cert

Add a certificate to a CMS ContentInfo, taking a reference on cert.

Synopsis

Declared in <openssl/cms.h>

int
CMS_add1_cert(
    CMS_ContentInfo* cms,
    X509* cert);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsContentInfo of type signed data or (authenticated) enveloped data.
certCertificate to add unless already present; caller retains ownership.