[#SSL_CTX_set_async_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;async&lowbar;callback
:mrdocs:

Set the asynchronous completion callback inherited by SSL objects from a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;async&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_async_callback_fn.adoc[SSL&lowbar;async&lowbar;callback&lowbar;fn] callback);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose default async callback is installed&period;
| *callback*
| Function invoked when an async&hyphen;capable engine finishes a crypto operation (with SSL&lowbar;MODE&lowbar;ASYNC)&period;
|===


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