[#SSL_CTX_sess_set_new_cb] = SSL_CTX_sess_set_new_cb :mrdocs: Set the callback invoked when a new session is negotiated for caching. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SSL_CTX_sess_set_new_cb( xref:SSL_CTX.adoc[SSL_CTX]* ctx, int(* new_session_cb)(xref:ssl_st.adoc[ssl_st]*, xref:SSL_SESSION.adoc[SSL_SESSION]*)); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context (typically a server) that receives new sessions. | *new_session_cb* | Callback receiving the SSL and session; return 1 to retain a reference, or 0 to discard. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#