SSL_CTX_sess_set_get_cb

Set the external session-lookup callback used when a session id is not in the internal cache.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_sess_set_get_cb(
    SSL_CTX* ctx,
    SSL_SESSION*(* get_session_cb)(ssl_st*, unsigned char const*, int, int*));

Parameters

NameDescription
ctxSSL context whose get-session callback is set.
get_session_cbCallback receiving the SSL, session-id bytes, length, and an out copy flag; NULL disables it.