SSL_CTX_set_allow_early_data_cb

Set a server callback that decides whether to accept TLSv1.3 early data for a context.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_allow_early_data_cb(
    SSL_CTX* ctx,
    SSL_allow_early_data_cb_fn cb,
    void* arg);

Parameters

NameDescription
ctxServer SSL context whose early-data decision callback is set (copied to new SSL objects).
cbCallback returning 1 to allow early data or 0 to reject it; NULL clears the callback.
argOpaque pointer passed to cb on each invocation.