[#SSL_CTX_set_not_resumable_session_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;not&lowbar;resumable&lowbar;session&lowbar;callback
:mrdocs:

Register a context&hyphen;wide callback that decides whether new sessions may be resumed&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;not&lowbar;resumable&lowbar;session&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int(* cb)(xref:SSL.adoc[SSL]*, int));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose sessions inherit this policy (copied to new SSL objects by SSL&lowbar;new)&period;
| *cb*
| Callback returning non&hyphen;zero to mark the session non&hyphen;resumable&semi; `is&lowbar;forward&lowbar;secure` indicates forward secrecy&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
