[#PKCS12_SAFEBAG_get0_p8inf]
= PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;p8inf
:mrdocs:

Return the PKCS&num;8 private key info from a keyBag or pkcs8ShroudedKeyBag&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8&lowbar;PRIV&lowbar;KEY&lowbar;INFO] const*
PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;p8inf(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG] const* bag);
----

== Return Value

PKCS&num;8 private key info, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag containing a private key&period;
|===


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