mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 09:54:10 +00:00
SSH2: make setCryptoEngine() less cumbersome
This commit is contained in:
parent
959c0cefae
commit
361b59fff9
@ -876,6 +876,11 @@ class Net_SSH2
|
||||
include_once 'Crypt/Hash.php';
|
||||
}
|
||||
|
||||
// include Crypt_Base so constants can be defined for setCryptoEngine()
|
||||
if (!class_exists('Crypt_Base')) {
|
||||
include_once 'Crypt/Base.php';
|
||||
}
|
||||
|
||||
$this->message_numbers = array(
|
||||
1 => 'NET_SSH2_MSG_DISCONNECT',
|
||||
2 => 'NET_SSH2_MSG_IGNORE',
|
||||
|
Loading…
Reference in New Issue
Block a user