src/OpenSSL/SSL.py
def set_tlsext_host_name(self, name):
        """
        Set the value of the servername extension to send in the client hello.

        :param name: A byte string giving the name.

        .. versionadded:: 0.13
        """
        if not isinstance(name, bytes):
            raise TypeError("name must be a byte string")
        elif b"\0" in name:
            raise TypeError("name must not contain NUL byte")

        # XXX I guess this can fail sometimes?
        _lib.SSL_set_tlsext_host_name(self._ssl, name)
def set_tlsext_host_name(self, name):
        if not isinstance(name, bytes):
            raise TypeError("name must be a byte string")
        elif b"\0" in name:
            raise TypeError("name must not contain NUL byte")

        # XXX I guess this can fail sometimes?
        _lib.SSL_set_tlsext_host_name(self._ssl, name)
def set_tlsext_host_name ( self , name ) : if not isinstance ( name , bytes ) : raise TypeError ( "name must be a byte string" ) elif b"\0" in name : raise TypeError ( "name must not contain NUL byte" ) # XXX I guess this can fail sometimes? _lib . SSL_set_tlsext_host_name ( self . _ssl , name )
Set the value of the servername extension to send in the client hello.

        :param name: A byte string giving the name.

        .. versionadded:: 0.13
Set the value of the servername extension to send in the client hello .