'Get a copy of the master key.
:return: A string representing the state'

def master_key(self):

    if (self._ssl.session == _ffi.NULL):
        return None
    return _ffi.buffer(self._ssl.session.master_key, self._ssl.session.master_key_length)[:]
