Return an attribute attached to an EVP_PKEY by index.
Declared in <openssl/x509.h>
X509_ATTRIBUTE*
EVP_PKEY_get_attr(
EVP_PKEY const* key,
int loc);
Internal X509_ATTRIBUTE pointer (do not free), or NULL if loc is out of range.
| Name | Description |
|---|---|
| key | Key whose attribute stack is queried. |
| loc | Zero-based attribute index. |