[#CMS_signed_get_attr_by_OBJ] = CMS_signed_get_attr_by_OBJ :mrdocs: Find the next signed attribute matching an OID in a CMS SignerInfo. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_signed_get_attr_by_OBJ( xref:CMS_SignerInfo.adoc[CMS_SignerInfo] const* si, xref:ASN1_OBJECT.adoc[ASN1_OBJECT] const* obj, int lastpos); ---- == Return Value Index of the matching attribute, or ‐1 if none is found (or on error). == Parameters [cols="1,4"] |=== | Name| Description | *si* | SignerInfo whose signedAttrs are searched. | *obj* | Attribute type OID to match. | *lastpos* | Index after which to continue searching (‐1 to start from the beginning). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#