1
0
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:
Scott 2016-02-11 15:54:27 -05:00
parent b69fa7f2a9
commit fee6431bad

View File

@ -1171,7 +1171,7 @@ class SSH2
'diffie-hellman-group-exchange-sha1', // 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('curve25519-sha256@libssh.org')