[#PKCS12_get_attr] = PKCS12_get_attr :mrdocs: Retrieve a PKCS#12 safeBag attribute by NID (deprecated; use PKCS12_SAFEBAG_get0_attr()). == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] xref:ASN1_TYPE.adoc[ASN1_TYPE]* PKCS12_get_attr( xref:PKCS12_SAFEBAG.adoc[PKCS12_SAFEBAG] const* bag, int attr_nid); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value Attribute value, or NULL if absent or on error. == Parameters [cols="1,4"] |=== | Name| Description | *bag* | SafeBag to query. | *attr_nid* | NID of the attribute to retrieve. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#