CMS_get1_certs

Return a new stack of all certificates carried in a CMS ContentInfo.

Synopsis

Declared in <openssl/cms.h>

stack_st_X509*
CMS_get1_certs(CMS_ContentInfo* cms);

Return Value

New STACK_OF(X509) the caller must free (certificates are up-reffed), or NULL if none or on error.

Parameters

NameDescription
cmsContentInfo of type signed data or (authenticated) enveloped data.