mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
81ba8f72c3
@ -2624,10 +2624,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;
|
||||
|
Loading…
Reference in New Issue
Block a user