id not occur</dt>
<dd>

<p>It will return the servername set via SSL_set_tlsext_host_name() or NULL if it was not called.</p>

</dd>
<dt id="On-the-server-before-the-handshake">On the server, before the handshake</dt>
<dd>

<p>The function will always return NULL before the handshake</p>

</dd>
<dt id="On-the-server-after-the-servername-extension-has-been-processed-and-a-TLSv1.2-or-below-resumption-occurred">On the server, after the servername extension has been processed and a TLSv1.2 (or below) resumption