1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 09:09:39 +01:00

SSH2: update identifier to 3.0

This commit is contained in:
terrafrost 2020-03-07 21:19:00 -06:00
parent 6e55470431
commit ddd5a08c5f
2 changed files with 2 additions and 2 deletions

View File

@ -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')) {

View File

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