[#CMS_signed_add1_attr_by_OBJ]
= CMS&lowbar;signed&lowbar;add1&lowbar;attr&lowbar;by&lowbar;OBJ
:mrdocs:

Append a signed attribute identified by ASN&period;1 object to a CMS SignerInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;signed&lowbar;add1&lowbar;attr&lowbar;by&lowbar;OBJ(
    xref:CMS_SignerInfo.adoc[CMS&lowbar;SignerInfo]* si,
    xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT] const* obj,
    int type,
    void const* bytes,
    int len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo whose signedAttrs set is extended&period;
| *obj*
| Attribute type OID&period;
| *type*
| ASN&period;1 string type of `bytes` (for example V&lowbar;ASN1&lowbar;OCTET&lowbar;STRING)&period;
| *bytes*
| Attribute value bytes to copy into the new X509&lowbar;ATTRIBUTE&period;
| *len*
| Length of `bytes` in octets&period;
|===


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