SSL_CTX_set_psk_find_session_callback

Set the TLSv1.3 PSK find-session callback for SSL objects created from a context (server).

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_psk_find_session_callback(
    SSL_CTX* ctx,
    SSL_psk_find_session_cb_func cb);

Parameters

NameDescription
ctxServer SSL context whose default PSK find-session callback is set.
cbCallback that returns an SSL_SESSION for the given identity, or NULL to clear.