Exemplo n.º 1
0
    def signData(self, publicKey, signData):
        """
        Extend the base signing behavior by using an SSH agent to sign the
        data, if one is available.

        @type publicKey: L{Key}
        @type signData: L{str}
        """
        if self.agent is not None:
            return self.agent.signData(publicKey.blob(), signData)
        else:
            return SSHUserAuthClient.signData(self, publicKey, signData)
Exemplo n.º 2
0
    def signData(self, publicKey, signData):
        """
        Extend the base signing behavior by using an SSH agent to sign the
        data, if one is available.

        @type publicKey: L{Key}
        @type signData: C{str}
        """
        if self.agent is not None:
            return self.agent.signData(publicKey.blob(), signData)
        else:
            return SSHUserAuthClient.signData(self, publicKey, signData)
Exemplo n.º 3
0
 def signData(self, publicKey, signData):
     if self.agent is not None:
         return self.agent.signData(publicKey.blob(), signData)
     else:
         return SSHUserAuthClient.signData(self, publicKey, signData)
Exemplo n.º 4
0
 def signData(self, publicKey, signData):
     if self.agent is not None:
         return self.agent.signData(publicKey.blob(), signData)
     else:
         return SSHUserAuthClient.signData(self, publicKey, signData)