[#CMS_unsigned_get0_data_by_OBJ] = CMS_unsigned_get0_data_by_OBJ :mrdocs: Find an unsigned attribute by OID and return its first ASN.1 value data pointer. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* CMS_unsigned_get0_data_by_OBJ( xref:CMS_SignerInfo.adoc[CMS_SignerInfo]* si, xref:ASN1_OBJECT.adoc[ASN1_OBJECT]* oid, int lastpos, int type); ---- == Return Value Pointer to the attribute value data, or NULL on error or if not found. == Parameters [cols="1,4"] |=== | Name| Description | *si* | SignerInfo whose unsignedAttrs are searched. | *oid* | Attribute type object identifier to match. | *lastpos* | Search start index; use a negative value to start from the beginning (see CMS_signed_get0_data_by_OBJ). | *type* | Expected ASN.1 type of the attribute value (must not be V_ASN1_BOOLEAN or V_ASN1_NULL). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#