mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 02:28:06 +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()
|
||||
{
|
||||
$identifier = 'SSH-2.0-phpseclib_2.0';
|
||||
$identifier = 'SSH-2.0-phpseclib_3.0';
|
||||
|
||||
$ext = [];
|
||||
if (extension_loaded('sodium')) {
|
||||
|
@ -39,7 +39,7 @@ class Unit_Net_SSH2Test extends PhpseclibTestCase
|
||||
public function testGenerateIdentifier()
|
||||
{
|
||||
$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')) {
|
||||
$this->assertContains('libsodium', $identifier);
|
||||
|
Loading…
Reference in New Issue
Block a user