SSL_CTX_set_not_resumable_session_callback

Register a context-wide callback that decides whether new sessions may be resumed.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_not_resumable_session_callback(
    SSL_CTX* ctx,
    int(* cb)(SSL*, int));

Parameters

NameDescription
ctxSSL context whose sessions inherit this policy (copied to new SSL objects by SSL_new).
cbCallback returning non-zero to mark the session non-resumable; is_forward_secure indicates forward secrecy.