mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
df9e8b328a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user