CMS_add0_CertificateChoices

Append an empty CertificateChoices slot to a CMS SignedData certificates set.

Synopsis

Declared in <openssl/cms.h>

CMS_CertificateChoices*
CMS_add0_CertificateChoices(CMS_ContentInfo* cms);

Return Value

Newly added CMS_CertificateChoices, or NULL on error; ownership stays with cms.

Parameters

NameDescription
cmsContentInfo of type signed-data (or similar) that holds certificates.