[#OSSL_LIB_CTX_new_from_dispatch]
= OSSL&lowbar;LIB&lowbar;CTX&lowbar;new&lowbar;from&lowbar;dispatch
:mrdocs:

Allocate an OSSL&lowbar;LIB&lowbar;CTX wired to core BIO upcalls from a provider dispatch table&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]*
OSSL&lowbar;LIB&lowbar;CTX&lowbar;new&lowbar;from&lowbar;dispatch(
    xref:OSSL_CORE_HANDLE.adoc[OSSL&lowbar;CORE&lowbar;HANDLE] const* handle,
    xref:OSSL_DISPATCH.adoc[OSSL&lowbar;DISPATCH] const* in);
----

== Return Value

New library context, or NULL on failure&semi; free with OSSL&lowbar;LIB&lowbar;CTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| Core handle passed to the provider (reserved for future use&semi; may be NULL)&period;
| *in*
| Provider&hyphen;to&hyphen;core OSSL&lowbar;DISPATCH table containing BIO upcall function pointers&period;
|===


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