CMS_set1_signers_certs

Attach signer certificates from certs to matching CMS SignerInfos.

Synopsis

Declared in <openssl/cms.h>

int
CMS_set1_signers_certs(
    CMS_ContentInfo* cms,
    stack_st_X509* certs,
    unsigned int flags);

Return Value

Number of SignerInfos that received a certificate, or a negative value on error.

Parameters

NameDescription
cmsSigned CMS ContentInfo whose SignerInfos are updated.
certsCandidate signer certificates; matching ones are referenced by the CMS structure.
flagsCMS_NOINTERN and related flags controlling where certificates are taken from.