[#SSL_get1_session]
= SSL&lowbar;get1&lowbar;session
:mrdocs:

Return the current SSL&lowbar;SESSION for `ssl` with an incremented reference count&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]*
SSL&lowbar;get1&lowbar;session(xref:SSL.adoc[SSL]* ssl);
----

== Return Value

SSL&lowbar;SESSION (caller must SSL&lowbar;SESSION&lowbar;free()), or NULL if none is available&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection to query&period;
|===


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