mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
Correct Sodium check
PECL Libsodium 1.0.x uses `\Sodium\function_name` instead of `\Sodium::method_name`.
This commit is contained in:
parent
b69fa7f2a9
commit
fee6431bad
@ -1171,7 +1171,7 @@ class SSH2
|
|||||||
'diffie-hellman-group-exchange-sha1', // RFC 4419
|
'diffie-hellman-group-exchange-sha1', // RFC 4419
|
||||||
'diffie-hellman-group-exchange-sha256', // RFC 4419
|
'diffie-hellman-group-exchange-sha256', // RFC 4419
|
||||||
);
|
);
|
||||||
if (!class_exists('\Sodium')) {
|
if (!function_exists('\\Sodium\\library_version_major')) {
|
||||||
$kex_algorithms = array_diff(
|
$kex_algorithms = array_diff(
|
||||||
$kex_algorithms,
|
$kex_algorithms,
|
||||||
array('curve25519-sha256@libssh.org')
|
array('curve25519-sha256@libssh.org')
|
||||||
|
Loading…
Reference in New Issue
Block a user