Merge branch '3.0'

This commit is contained in:
terrafrost 2024-05-10 20:55:05 -05:00
commit f5d02126e1

View File

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