[#CMS_set1_signers_certs]
= CMS&lowbar;set1&lowbar;signers&lowbar;certs
:mrdocs:

Attach signer certificates from `certs` to matching CMS SignerInfos&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;set1&lowbar;signers&lowbar;certs(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms,
    stack&lowbar;st&lowbar;X509* certs,
    unsigned int flags);
----

== Return Value

Number of SignerInfos that received a certificate, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| Signed CMS ContentInfo whose SignerInfos are updated&period;
| *certs*
| Candidate signer certificates&semi; matching ones are referenced by the CMS structure&period;
| *flags*
| CMS&lowbar;NOINTERN and related flags controlling where certificates are taken from&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
