 SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,
                         unsigned int sid_len);</code></pre>

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

<p>SSL_SESSION_get_id() returns a pointer to the internal session id value for the session <b>s</b>. The length of the id in bytes is stored in <b>*len</b>. The length may be 0. The caller should not free the returned pointer directly.</p>

<p>SSL_SESSION_set1_id() sets the session ID for the <b>ssl</b> SSL/TLS session to <b>sid</b> of length <b>