src/OpenSSL/SSL.py
def get_servername(self):
        """
        Retrieve the servername extension value if provided in the client hello
        message, or None if there wasn't one.

        :return: A byte string giving the server name or :data:`None`.

        .. versionadded:: 0.13
        """
        name = _lib.SSL_get_servername(
            self._ssl, _lib.TLSEXT_NAMETYPE_host_name
        )
        if name == _ffi.NULL:
            return None

        return _ffi.string(name)
def get_servername(self):
        name = _lib.SSL_get_servername(
            self._ssl, _lib.TLSEXT_NAMETYPE_host_name
        )
        if name == _ffi.NULL:
            return None

        return _ffi.string(name)
def get_servername ( self ) : name = _lib . SSL_get_servername ( self . _ssl , _lib . TLSEXT_NAMETYPE_host_name ) if name == _ffi . NULL : return None return _ffi . string ( name )
Retrieve the servername extension value if provided in the client hello
        message, or None if there wasn't one.

        :return: A byte string giving the server name or :data:`None`.

        .. versionadded:: 0.13
Retrieve the servername extension value if provided in the client hello message or None if there wasn t one .