[#EVP_PKEY_get_attr_by_OBJ] = EVP_PKEY_get_attr_by_OBJ :mrdocs: Find the next attribute on an EVP_PKEY matching object identifier `obj.` == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_get_attr_by_OBJ( xref:EVP_PKEY.adoc[EVP_PKEY] const* key, xref:ASN1_OBJECT.adoc[ASN1_OBJECT] const* obj, int lastpos); ---- == Return Value * Attribute index, or ‐1 if not found. * Attribute index, or ‐1 if not found. == Parameters [cols="1,4"] |=== | Name| Description | *key* | Key whose attribute stack is searched. | *obj* | Attribute type OID to match. | *lastpos* | Index to search after, or ‐1 to start from the beginning. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#