[#CMS_add_smimecap]
= CMS&lowbar;add&lowbar;smimecap
:mrdocs:

Encode a stack of algorithms as an SMIMECapabilities signed attribute on a SignerInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;add&lowbar;smimecap(
    xref:CMS_SignerInfo.adoc[CMS&lowbar;SignerInfo]* si,
    stack&lowbar;st&lowbar;X509&lowbar;ALGOR* algs);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo that receives the SMIMECapabilities attribute&period;
| *algs*
| Stack of X509&lowbar;ALGOR capability entries (for example built with CMS&lowbar;add&lowbar;simple&lowbar;smimecap)&period;
|===


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