[#PKCS12_SAFEBAG_get0_bag_obj]
= PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;bag&lowbar;obj
:mrdocs:

Retrieve the ASN&period;1 object contained within a safeBag&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE] const*
PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;bag&lowbar;obj(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG] const* bag);
----

== Return Value

Pointer to the bag object, or NULL on error&period;

== Parameters

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


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