[#PKCS8_get_attr] = PKCS8_get_attr :mrdocs: Retrieve a PKCS#8 private‐key attribute by NID. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:ASN1_TYPE.adoc[ASN1_TYPE]* PKCS8_get_attr( xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8_PRIV_KEY_INFO]* p8, int attr_nid); ---- == Return Value Attribute value, or NULL if absent or on error. == Parameters [cols="1,4"] |=== | Name| Description | *p8* | PKCS#8 private key info structure. | *attr_nid* | NID of the attribute to retrieve. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#