src/OpenSSL/SSL.py
def master_key(self):
        """
        Retrieve the value of the master key for this session.

        :return: A string representing the state
        """
        session = _lib.SSL_get_session(self._ssl)
        if session == _ffi.NULL:
            return None

        length = _lib.SSL_SESSION_get_master_key(session, _ffi.NULL, 0)
        assert length > 0
        outp = _no_zero_allocator("unsigned char[]", length)
        _lib.SSL_SESSION_get_master_key(session, outp, length)
        return _ffi.buffer(outp, length)[:]
def master_key(self):
        session = _lib.SSL_get_session(self._ssl)
        if session == _ffi.NULL:
            return None

        length = _lib.SSL_SESSION_get_master_key(session, _ffi.NULL, 0)
        assert length > 0
        outp = _no_zero_allocator("unsigned char[]", length)
        _lib.SSL_SESSION_get_master_key(session, outp, length)
        return _ffi.buffer(outp, length)[:]
def master_key ( self ) : session = _lib . SSL_get_session ( self . _ssl ) if session == _ffi . NULL : return None length = _lib . SSL_SESSION_get_master_key ( session , _ffi . NULL , 0 ) assert length > 0 outp = _no_zero_allocator ( "unsigned char[]" , length ) _lib . SSL_SESSION_get_master_key ( session , outp , length ) return _ffi . buffer ( outp , length ) [ : ]
Retrieve the value of the master key for this session.

        :return: A string representing the state
Retrieve the value of the master key for this session .