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

Append one S&sol;MIME capability AlgorithmIdentifier to a stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;add&lowbar;simple&lowbar;smimecap(
    stack&lowbar;st&lowbar;X509&lowbar;ALGOR** algs,
    int algnid,
    int keysize);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *algs*
| Address of the stack to create or extend (may point to NULL)&period;
| *algnid*
| Algorithm NID for the capability (cipher or similar)&period;
| *keysize*
| Optional key&hyphen;size parameter in bits&semi; if &lt;&equals; 0, no parameter is included&period;
|===


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