[#SSL_CTX_sess_set_get_cb] = SSL_CTX_sess_set_get_cb :mrdocs: Set the external session‐lookup callback used when a session id is not in the internal cache. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SSL_CTX_sess_set_get_cb( xref:SSL_CTX.adoc[SSL_CTX]* ctx, xref:SSL_SESSION.adoc[SSL_SESSION]*(* get_session_cb)(xref:ssl_st.adoc[ssl_st]*, unsigned char const*, int, int*)); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context whose get‐session callback is set. | *get_session_cb* | Callback receiving the SSL, session‐id bytes, length, and an out `copy` flag; NULL disables it. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#