[#SSL_CTX_set_allow_early_data_cb]
= SSL&lowbar;CTX&lowbar;set&lowbar;allow&lowbar;early&lowbar;data&lowbar;cb
:mrdocs:

Set a server callback that decides whether to accept TLSv1&period;3 early data for a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;allow&lowbar;early&lowbar;data&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_allow_early_data_cb_fn.adoc[SSL&lowbar;allow&lowbar;early&lowbar;data&lowbar;cb&lowbar;fn] cb,
    void* arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Server SSL context whose early&hyphen;data decision callback is set (copied to new SSL objects)&period;
| *cb*
| Callback returning 1 to allow early data or 0 to reject it&semi; NULL clears the callback&period;
| *arg*
| Opaque pointer passed to `cb` on each invocation&period;
|===


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