Retrieve a PKCS#8 private-key attribute by NID.
Declared in <openssl/pkcs12.h>
ASN1_TYPE*
PKCS8_get_attr(
PKCS8_PRIV_KEY_INFO* p8,
int attr_nid);
Attribute value, or NULL if absent or on error.
| Name | Description |
|---|---|
| p8 | PKCS#8 private key info structure. |
| attr_nid | NID of the attribute to retrieve. |