[#CMS_unsigned_add1_attr]
= CMS&lowbar;unsigned&lowbar;add1&lowbar;attr
:mrdocs:

Append a copy of an X509&lowbar;ATTRIBUTE to a CMS SignerInfo&apos;s unsigned attributes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;unsigned&lowbar;add1&lowbar;attr(
    xref:CMS_SignerInfo.adoc[CMS&lowbar;SignerInfo]* si,
    xref:X509_ATTRIBUTE.adoc[X509&lowbar;ATTRIBUTE]* attr);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo whose unsignedAttrs set is extended&period;
| *attr*
| Attribute to copy&semi; must not be NULL&period;
|===


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