mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-05-28 14:10:52 +00:00
CS adjustments
This commit is contained in:
parent
501c96c48c
commit
ff26e22563
|
@ -309,8 +309,6 @@ class SFTP extends SSH2
|
||||||
* Default Constructor.
|
* Default Constructor.
|
||||||
*
|
*
|
||||||
* Connects to an SFTP server
|
* Connects to an SFTP server
|
||||||
*
|
|
||||||
* @param mixed $host
|
|
||||||
*/
|
*/
|
||||||
public function __construct($host, int $port = 22, int $timeout = 10)
|
public function __construct($host, int $port = 22, int $timeout = 10)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,6 @@ namespace phpseclib3\Net;
|
||||||
use phpseclib3\Common\Functions\Strings;
|
use phpseclib3\Common\Functions\Strings;
|
||||||
use phpseclib3\Crypt\Blowfish;
|
use phpseclib3\Crypt\Blowfish;
|
||||||
use phpseclib3\Crypt\ChaCha20;
|
use phpseclib3\Crypt\ChaCha20;
|
||||||
use phpseclib3\Crypt\Common\AsymmetricKey;
|
|
||||||
use phpseclib3\Crypt\Common\PrivateKey;
|
use phpseclib3\Crypt\Common\PrivateKey;
|
||||||
use phpseclib3\Crypt\Common\PublicKey;
|
use phpseclib3\Crypt\Common\PublicKey;
|
||||||
use phpseclib3\Crypt\Common\SymmetricKey;
|
use phpseclib3\Crypt\Common\SymmetricKey;
|
||||||
|
@ -4530,7 +4529,7 @@ class SSH2
|
||||||
/**
|
/**
|
||||||
* Force multiple channels (even if phpseclib has decided to disable them)
|
* Force multiple channels (even if phpseclib has decided to disable them)
|
||||||
*/
|
*/
|
||||||
public function forceMultipleChannels()
|
public function forceMultipleChannels(): void
|
||||||
{
|
{
|
||||||
$this->errorOnMultipleChannels = false;
|
$this->errorOnMultipleChannels = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -539,7 +539,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReadingOfClosedChannel()
|
public function testReadingOfClosedChannel(): void
|
||||||
{
|
{
|
||||||
$ssh = $this->getSSH2Login();
|
$ssh = $this->getSSH2Login();
|
||||||
$this->assertSame(0, $ssh->getOpenChannelCount());
|
$this->assertSame(0, $ssh->getOpenChannelCount());
|
||||||
|
|
|
@ -259,12 +259,10 @@ zUlir0ACPypC1Q==
|
||||||
|
|
||||||
public function testSettingOnePadding(): void
|
public function testSettingOnePadding(): void
|
||||||
{
|
{
|
||||||
$pub = <<<HERE
|
$pub = '-----BEGIN PUBLIC KEY-----
|
||||||
-----BEGIN PUBLIC KEY-----
|
|
||||||
MF0wDQYJKoZIhvcNAQEBBQADTAAwSQJCAmdYuOvii3I6ya3q/zSeZFoJprgF9fIq
|
MF0wDQYJKoZIhvcNAQEBBQADTAAwSQJCAmdYuOvii3I6ya3q/zSeZFoJprgF9fIq
|
||||||
k12yS6pCS3c+1wZ9cYFVtgfpSL4XpylLe9EnRT2GRVYCqUkR4AUeTuvnAgMBAAE=
|
k12yS6pCS3c+1wZ9cYFVtgfpSL4XpylLe9EnRT2GRVYCqUkR4AUeTuvnAgMBAAE=
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----';
|
||||||
HERE;
|
|
||||||
|
|
||||||
$rsa = PublicKeyLoader::load($pub);
|
$rsa = PublicKeyLoader::load($pub);
|
||||||
$this->assertTrue((bool) ($rsa->getPadding() & RSA::SIGNATURE_PSS));
|
$this->assertTrue((bool) ($rsa->getPadding() & RSA::SIGNATURE_PSS));
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpseclib3\Tests\Unit\Math;
|
namespace phpseclib3\Tests\Unit\Math;
|
||||||
|
|
||||||
use phpseclib3\Math\BigInteger;
|
use phpseclib3\Math\BigInteger;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user