[#GEN_SESSION_CB]
= GEN&lowbar;SESSION&lowbar;CB
:mrdocs:

Server callback that generates a new SSL&sol;TLS session ID&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int(* GEN&lowbar;SESSION&lowbar;CB)(xref:SSL.adoc[SSL]*, unsigned char*, unsigned int*);
----

== Return Value

Non&hyphen;zero to proceed, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection for which a session ID is being created&period;
| *id*
| Buffer that receives the generated session ID bytes&period;
| *id&lowbar;len*
| On entry, maximum allowed ID length&semi; on success, actual length written (must be &gt; 0)&period;
|===


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