[#PKCS12_SAFEBAG_get0_pkcs8]
= PKCS12&lowbar;SAFEBAG&lowbar;get0&lowbar;pkcs8
:mrdocs:

Return the encrypted PKCS&num;8 structure from a pkcs8ShroudedKeyBag safeBag&period;

== Synopsis

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

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

== Return Value

Internal X509&lowbar;SIG pointer for the shrouded key, or NULL if `bag` is not pkcs8ShroudedKeyBag&semi; do not free&period;

== Parameters

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


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