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 committed by terrafrost
parent 88a04862ae
commit fc4599985a

View File

@ -1160,7 +1160,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')