mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +00:00
Agent: reset supported_private_key_algorithms for every key
This commit is contained in:
parent
cd4d0ba47c
commit
3b0fb1c05f
@ -2799,10 +2799,12 @@ class Net_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…
x
Reference in New Issue
Block a user