Skip to content

Commit

Permalink
SSH/Agent: EC keys didn't work with agent
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Jan 25, 2021
1 parent 3d47673 commit 1795b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/System/SSH/Agent/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function __construct($fsock)
*/
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');
}
Expand Down

1 comment on commit 1795b5d

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1593

Please sign in to comment.