Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2024-05-10 20:44:34 -05:00
commit df9e8b328a

View File

@ -2790,10 +2790,12 @@ class SSH2
{ {
$this->agent = $agent; $this->agent = $agent;
$keys = $agent->requestIdentities(); $keys = $agent->requestIdentities();
$orig_algorithms = $this->supported_private_key_algorithms;
foreach ($keys as $key) { foreach ($keys as $key) {
if ($this->_privatekey_login($username, $key)) { if ($this->_privatekey_login($username, $key)) {
return true; return true;
} }
$this->supported_private_key_algorithms = $orig_algorithms;
} }
return false; return false;