[#PKCS12_SAFEBAG_get0_attrs]
= PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;attrs
:mrdocs:

Return the attribute stack attached to a safeBag without copying it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
stack&lowbar;st&lowbar;X509&lowbar;ATTRIBUTE const*
PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;attrs(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG] const* bag);
----

== Return Value

Internal stack of X509&lowbar;ATTRIBUTE, or NULL if `bag` is NULL&semi; do not free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag to query&period;
|===


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