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

Name

Description

cms

Signed CMS ContentInfo whose SignerInfos are updated.

certs

Candidate signer certificates; matching ones are referenced by the CMS structure.

flags

CMS_NOINTERN and related flags controlling where certificates are taken from.

Created with MrDocs