[#CMS_unsigned_get_attr]
= CMS&lowbar;unsigned&lowbar;get&lowbar;attr
:mrdocs:

Return the unsigned attribute at an index in a CMS SignerInfo&period;

== Synopsis

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

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

== Return Value

Internal X509&lowbar;ATTRIBUTE pointer (do not free), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo whose unsignedAttrs are accessed&period;
| *loc*
| Zero&hyphen;based index in the range &lsqb;0, CMS&lowbar;unsigned&lowbar;get&lowbar;attr&lowbar;count(si) &hyphen; 1&rsqb;&period;
|===


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