[#PKCS12_create_cb]
= PKCS12&lowbar;create&lowbar;cb
:mrdocs:

Callback invoked for each safeBag while building a PKCS&num;12 structure&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int PKCS12&lowbar;create&lowbar;cb(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG]*, void*);
----

== Return Value

1 to keep `bag,` 0 to remove it, or &hyphen;1 for a fatal error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag just added by PKCS12&lowbar;create&lowbar;ex2()&period;
| *cbarg*
| Opaque argument supplied to PKCS12&lowbar;create&lowbar;ex2()&period;
|===


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