summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-03-18 08:24:57 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-03-18 08:24:57 -0400
commit7a03c6568870bd209fba70a7302be7e12f33847c (patch)
treeb33634a5373cbcf3d575734a45ab963b32fb5751
parent67254b677ddb32f86442aeaa23326c294ffd716c (diff)
fix
-rw-r--r--paramiko/rsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index 65688c43..b0c13386 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -93,7 +93,7 @@ class RSAKey(PKey):
return self.size
def can_sign(self):
- return self.d is not None
+ return isinstance(self.key, rsa.RSAPrivateKey)
def sign_ssh_data(self, data):
signer = self.key.signer(