Find the next attribute on an EVP_PKEY whose type NID equals nid.
Declared in <openssl/x509.h>
int
EVP_PKEY_get_attr_by_NID(
EVP_PKEY const* key,
int nid,
int lastpos);
Attribute index, or -1 if not found.
| 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). |