SSL_CTX_sess_set_remove_cb

Set the callback invoked when a session is removed from an SSL context cache.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_sess_set_remove_cb(
    SSL_CTX* ctx,
    void(* remove_session_cb)(ssl_ctx_st*, SSL_SESSION*));

Parameters

NameDescription
ctxSSL context whose session cache remove callback is set.
remove_session_cbCallback receiving the context and the session being removed; NULL disables it.