mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-27 22:59:02 +00:00
SSH2: when building algo list look at if crypto engine is set
This commit is contained in:
parent
c7d7b36018
commit
40b4f1d557
@ -4610,11 +4610,15 @@ class Net_SSH2
|
||||
//'none' // OPTIONAL no encryption; NOT RECOMMENDED
|
||||
);
|
||||
|
||||
$engines = array(
|
||||
CRYPT_ENGINE_OPENSSL,
|
||||
CRYPT_ENGINE_MCRYPT,
|
||||
CRYPT_ENGINE_INTERNAL
|
||||
);
|
||||
if ($this->crypto_engine) {
|
||||
$engines = array($this->crypto_engine);
|
||||
} else {
|
||||
$engines = array(
|
||||
CRYPT_ENGINE_OPENSSL,
|
||||
CRYPT_ENGINE_MCRYPT,
|
||||
CRYPT_ENGINE_INTERNAL
|
||||
);
|
||||
}
|
||||
|
||||
$ciphers = array();
|
||||
foreach ($engines as $engine) {
|
||||
|
Loading…
Reference in New Issue
Block a user