SSH2: backport some E_DEPRECATED fixes from 3.0

This commit is contained in:
terrafrost 2023-06-12 17:14:30 -05:00
parent eb8cbd7317
commit b6c01f9318

View File

@ -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