twisted.conch.error.MissingKeyStoreError

Here are the examples of the python api twisted.conch.error.MissingKeyStoreError taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 Source : agent.py
with MIT License
from autofelix

    def dataReceived(self, data):
        self.buf += data
        while 1:
            if len(self.buf)   <  = 4:
                return
            packLen = struct.unpack('!L', self.buf[:4])[0]
            if len(self.buf)  <  4 + packLen:
                return
            packet, self.buf = self.buf[4:4 + packLen], self.buf[4 + packLen:]
            reqType = ord(packet[0:1])
            reqName = messages.get(reqType, None)
            if not reqName:
                self.sendResponse(AGENT_FAILURE, b'')
            else:
                f = getattr(self, 'agentc_%s' % reqName)
                if getattr(self.factory, 'keys', None) is None:
                    self.sendResponse(AGENT_FAILURE, b'')
                    raise MissingKeyStoreError()
                f(packet[1:])


    def sendResponse(self, reqType, data):