[#PKCS12_init_ex]
= PKCS12&lowbar;init&lowbar;ex
:mrdocs:

Create an empty PKCS&num;12 structure with a library context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PKCS12.adoc[PKCS12]*
PKCS12&lowbar;init&lowbar;ex(
    int mode,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    char const* propq);
----

== Return Value

New PKCS&num;12 structure, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mode*
| NID of the outer PKCS&num;7 content type wrapping authSafes (currently NID&lowbar;pkcs7&lowbar;data only)&period;
| *ctx*
| Library context for algorithm fetching, or NULL for default&period;
| *propq*
| Property query for algorithm fetching, or NULL&period;
|===


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