[#PKCS7_simple_smimecap]
= PKCS7&lowbar;simple&lowbar;smimecap
:mrdocs:

Append a simple SMIMECapabilities AlgorithmIdentifier for `nid` to `sk&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;simple&lowbar;smimecap(
    xref:stack_st_X509_ALGOR.adoc[stack&lowbar;st&lowbar;X509&lowbar;ALGOR]* sk,
    int nid,
    int arg);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sk*
| Capability stack receiving the new AlgorithmIdentifier&period;
| *nid*
| Algorithm NID to advertise (cipher or digest)&period;
| *arg*
| Optional algorithm parameter (for example key length for RC2), or &hyphen;1 &sol; 0 when unused&period;
|===


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