'Set the value of the servername extension to send in the client hello.
:param name: A byte string giving the name.'

def set_tlsext_host_name(self, name):

    if (not isinstance(name, bytes)):
        raise TypeError('name    must    be    a    byte    string')
    elif ('\x00' in name):
        raise TypeError('name    must    not    contain    NUL    byte')
    _lib.SSL_set_tlsext_host_name(self._ssl, name)
