mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-04 12:58:28 +00:00
SSH2: make $mac_algorithms non-static
none of the other statically defined variables have the potential to change as multiple Net_SSH2 objects are created but this one does. ie. if you connect to one SSH-2.0-SSHD server then no subsequent server will use hmac-sha1-96 even if it could
This commit is contained in:
parent
6e796d091a
commit
246e9e154f
@ -1140,7 +1140,7 @@ class Net_SSH2
|
||||
$encryption_algorithms = array_values($encryption_algorithms);
|
||||
}
|
||||
|
||||
static $mac_algorithms = array(
|
||||
$mac_algorithms = array(
|
||||
'hmac-sha1-96', // RECOMMENDED first 96 bits of HMAC-SHA1 (digest length = 12, key length = 20)
|
||||
'hmac-sha1', // REQUIRED HMAC-SHA1 (digest length = key length = 20)
|
||||
'hmac-md5-96', // OPTIONAL first 96 bits of HMAC-MD5 (digest length = 12, key length = 16)
|
||||
|
Loading…
x
Reference in New Issue
Block a user