mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 18:59:51 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
9d0c924cbd
@ -1287,8 +1287,9 @@ class SSH2
|
|||||||
);
|
);
|
||||||
|
|
||||||
// some SSH servers have buggy implementations of some of the above algorithms
|
// some SSH servers have buggy implementations of some of the above algorithms
|
||||||
switch ($this->server_identifier) {
|
switch (true) {
|
||||||
case 'SSH-2.0-SSHD':
|
case $this->server_identifier == 'SSH-2.0-SSHD':
|
||||||
|
case substr($this->server_identifier, 0, 13) == 'SSH-2.0-DLINK':
|
||||||
$mac_algorithms = array_values(array_diff(
|
$mac_algorithms = array_values(array_diff(
|
||||||
$mac_algorithms,
|
$mac_algorithms,
|
||||||
array('hmac-sha1-96', 'hmac-md5-96')
|
array('hmac-sha1-96', 'hmac-md5-96')
|
||||||
|
Loading…
Reference in New Issue
Block a user