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