mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +01:00
SSH2: update identifier to 3.0
This commit is contained in:
parent
6e55470431
commit
ddd5a08c5f
@ -1339,7 +1339,7 @@ class SSH2
|
|||||||
*/
|
*/
|
||||||
private function generate_identifier()
|
private function generate_identifier()
|
||||||
{
|
{
|
||||||
$identifier = 'SSH-2.0-phpseclib_2.0';
|
$identifier = 'SSH-2.0-phpseclib_3.0';
|
||||||
|
|
||||||
$ext = [];
|
$ext = [];
|
||||||
if (extension_loaded('sodium')) {
|
if (extension_loaded('sodium')) {
|
||||||
|
@ -39,7 +39,7 @@ class Unit_Net_SSH2Test extends PhpseclibTestCase
|
|||||||
public function testGenerateIdentifier()
|
public function testGenerateIdentifier()
|
||||||
{
|
{
|
||||||
$identifier = self::callFunc($this->createSSHMock(), 'generate_identifier');
|
$identifier = self::callFunc($this->createSSHMock(), 'generate_identifier');
|
||||||
$this->assertStringStartsWith('SSH-2.0-phpseclib_2.0', $identifier);
|
$this->assertStringStartsWith('SSH-2.0-phpseclib_3.0', $identifier);
|
||||||
|
|
||||||
if (function_exists('\\Sodium\\library_version_major')) {
|
if (function_exists('\\Sodium\\library_version_major')) {
|
||||||
$this->assertContains('libsodium', $identifier);
|
$this->assertContains('libsodium', $identifier);
|
||||||
|
Loading…
Reference in New Issue
Block a user