[#PKCS7_add_attrib_smimecap]
= PKCS7&lowbar;add&lowbar;attrib&lowbar;smimecap
:mrdocs:

Attach an S&sol;MIME capabilities attribute to a PKCS&num;7 signer info&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;add&lowbar;attrib&lowbar;smimecap(
    xref:PKCS7_SIGNER_INFO.adoc[PKCS7&lowbar;SIGNER&lowbar;INFO]* si,
    stack&lowbar;st&lowbar;X509&lowbar;ALGOR* cap);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| Signer info that receives the SMIMECapabilities signed attribute&period;
| *cap*
| Stack of X509&lowbar;ALGOR capability descriptors (for example from PKCS7&lowbar;simple&lowbar;smimecap)&period;
|===


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