[#CMS_unsigned_get0_data_by_OBJ]
= CMS&lowbar;unsigned&lowbar;get0&lowbar;data&lowbar;by&lowbar;OBJ
:mrdocs:

Find an unsigned attribute by OID and return its first ASN&period;1 value data pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
CMS&lowbar;unsigned&lowbar;get0&lowbar;data&lowbar;by&lowbar;OBJ(
    xref:CMS_SignerInfo.adoc[CMS&lowbar;SignerInfo]* si,
    xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT]* oid,
    int lastpos,
    int type);
----

== Return Value

Pointer to the attribute value data, or NULL on error or if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo whose unsignedAttrs are searched&period;
| *oid*
| Attribute type object identifier to match&period;
| *lastpos*
| Search start index&semi; use a negative value to start from the beginning (see CMS&lowbar;signed&lowbar;get0&lowbar;data&lowbar;by&lowbar;OBJ)&period;
| *type*
| Expected ASN&period;1 type of the attribute value (must not be V&lowbar;ASN1&lowbar;BOOLEAN or V&lowbar;ASN1&lowbar;NULL)&period;
|===


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