[#SSL_CTX_sess_set_get_cb]
= SSL&lowbar;CTX&lowbar;sess&lowbar;set&lowbar;get&lowbar;cb
:mrdocs:

Set the external session&hyphen;lookup callback used when a session id is not in the internal cache&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;sess&lowbar;set&lowbar;get&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]*(* get&lowbar;session&lowbar;cb)(xref:ssl_st.adoc[ssl&lowbar;st]*, unsigned char const*, int, int*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose get&hyphen;session callback is set&period;
| *get&lowbar;session&lowbar;cb*
| Callback receiving the SSL, session&hyphen;id bytes, length, and an out `copy` flag&semi; NULL disables it&period;
|===


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