mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 10:53:09 +00:00
Merge branch '3.0'
This commit is contained in:
commit
f5d02126e1
@ -2335,10 +2335,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user