[#SSL_SESSION_get0_id_context]
= SSL&lowbar;SESSION&lowbar;get0&lowbar;id&lowbar;context
:mrdocs:

Return the session&hyphen;id context bytes associated with a session&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const*
SSL&lowbar;SESSION&lowbar;get0&lowbar;id&lowbar;context(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION] const* s,
    unsigned int* len);
----

== Return Value

Pointer to the internal context bytes (do not free), or NULL if unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to query&period;
| *len*
| If non&hyphen;NULL, receives the context length in bytes&period;
|===


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