></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>SSL_get_session() returns a pointer to the <b>SSL_SESSION</b> actually used in <b>ssl</b>. The reference count of the <b>SSL_SESSION</b> is not incremented, so that the pointer can become invalid by other operations.</p>

<p>SSL_get0_session() is the same as SSL_get_session().</p>

<p>SSL_get1_session() is the same as SSL_get_session(), but the reference count of the <b>SSL_SESSION</b> is incremented by one.</p>

<h1 id="NOTES">NOTES</h1>

<p>The ssl sessio