[#PKCS12_get_attr]
= PKCS12&lowbar;get&lowbar;attr
:mrdocs:

Retrieve a PKCS&num;12 safeBag attribute by NID (deprecated&semi; use PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;attr())&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]*
PKCS12&lowbar;get&lowbar;attr(
    xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG] const* bag,
    int attr&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag to query&period;
| *attr&lowbar;nid*
| NID of the attribute to retrieve&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
