From 1795b5df6a172952cfc4d67177646709152c9367 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 25 Jan 2021 12:21:14 -0600 Subject: [PATCH] SSH/Agent: EC keys didn't work with agent --- phpseclib/System/SSH/Agent/Identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/System/SSH/Agent/Identity.php b/phpseclib/System/SSH/Agent/Identity.php index 9ef02dfa..20b0a958 100644 --- a/phpseclib/System/SSH/Agent/Identity.php +++ b/phpseclib/System/SSH/Agent/Identity.php @@ -119,7 +119,7 @@ class Identity implements PrivateKey */ public function withPublicKey($key) { - if ($key instanceof ECDSA) { + if ($key instanceof EC) { if (is_array($key->getCurve()) || !isset(self::$curveAliases[$key->getCurve()])) { throw new UnsupportedAlgorithmException('The only supported curves are nistp256, nistp384, nistp512 and Ed25519'); }