summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2016-04-28 15:38:36 -0700
committerJeff Forcier <jeff@bitprophet.org>2016-04-28 15:38:36 -0700
commit9cf960c28c5d90ac0595b235f9c743c69f010ded (patch)
treec62550ec5e08d531cfddcae22cc92215dd6478f9
parentbb21c811d9159732d2f60e85961972a3bfc23afc (diff)
Patch fix via @alex on #731, tests pass locally again
-rw-r--r--paramiko/ecdsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index 2825a305..d435603d 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -131,7 +131,7 @@ class ECDSAKey(PKey):
pointinfo = msg.get_binary()
try:
numbers = ec.EllipticCurvePublicNumbers.from_encoded_point(
- ec.SECP256R1(), pointinfo
+ self.ecdsa_curve.curve_class(), pointinfo
)
except ValueError:
raise SSHException("Invalid public key")