mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
SSH2: backport some E_DEPRECATED fixes from 3.0
This commit is contained in:
parent
eb8cbd7317
commit
b6c01f9318
@ -405,6 +405,14 @@ class Net_SSH2
|
||||
*/
|
||||
var $decrypt = false;
|
||||
|
||||
/**
|
||||
* Decryption Algorithm Name
|
||||
*
|
||||
* @var string|null
|
||||
* @access private
|
||||
*/
|
||||
var $decryptName;
|
||||
|
||||
/**
|
||||
* Client to Server Encryption Object
|
||||
*
|
||||
@ -414,6 +422,14 @@ class Net_SSH2
|
||||
*/
|
||||
var $encrypt = false;
|
||||
|
||||
/**
|
||||
* Encryption Algorithm Name
|
||||
*
|
||||
* @var string|null
|
||||
* @access private
|
||||
*/
|
||||
var $encryptName;
|
||||
|
||||
/**
|
||||
* Client to Server HMAC Object
|
||||
*
|
||||
@ -1981,7 +1997,7 @@ class Net_SSH2
|
||||
}
|
||||
$this->encrypt->setKey(substr($key, 0, $encryptKeyLength));
|
||||
|
||||
$this->encrypt->name = $decrypt;
|
||||
$this->encryptName = $encrypt;
|
||||
}
|
||||
|
||||
if ($this->decrypt) {
|
||||
@ -2007,7 +2023,7 @@ class Net_SSH2
|
||||
}
|
||||
$this->decrypt->setKey(substr($key, 0, $decryptKeyLength));
|
||||
|
||||
$this->decrypt->name = $decrypt;
|
||||
$this->decryptName = $decrypt;
|
||||
}
|
||||
|
||||
/* The "arcfour128" algorithm is the RC4 cipher, as described in
|
||||
|
Loading…
Reference in New Issue
Block a user