mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 01:44:06 +00:00
Merge branch '3.0'
This commit is contained in:
commit
a88b7e546e
@ -233,4 +233,4 @@ abstract class Base
|
||||
$r = $this->addPoint($p1, $p2);
|
||||
return $this->convertToAffine($r);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -375,4 +375,4 @@ class Binary extends Base
|
||||
$p['fresh'] = true;
|
||||
return $p;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -737,4 +737,4 @@ class BCMath extends Engine
|
||||
|
||||
return $temp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -190,4 +190,4 @@ abstract class Barrett extends Base
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -341,7 +341,6 @@ class SFTP extends SSH2
|
||||
* @param string $host
|
||||
* @param int $port
|
||||
* @param int $timeout
|
||||
* @return \phpseclib3\Net\SFTP
|
||||
* @access public
|
||||
*/
|
||||
public function __construct($host, $port = 22, $timeout = 10)
|
||||
@ -782,7 +781,7 @@ class SFTP extends SSH2
|
||||
/**
|
||||
* Returns the current directory name
|
||||
*
|
||||
* @return mixed
|
||||
* @return string|false
|
||||
* @access public
|
||||
*/
|
||||
public function pwd()
|
||||
@ -952,7 +951,7 @@ class SFTP extends SSH2
|
||||
*
|
||||
* @param string $dir
|
||||
* @param bool $recursive
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access public
|
||||
*/
|
||||
public function nlist($dir = '.', $recursive = false)
|
||||
@ -966,7 +965,7 @@ class SFTP extends SSH2
|
||||
* @param string $dir
|
||||
* @param bool $recursive
|
||||
* @param string $relativeDir
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access private
|
||||
*/
|
||||
private function nlist_helper($dir, $recursive, $relativeDir)
|
||||
@ -1000,7 +999,7 @@ class SFTP extends SSH2
|
||||
*
|
||||
* @param string $dir
|
||||
* @param bool $recursive
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access public
|
||||
*/
|
||||
public function rawlist($dir = '.', $recursive = false)
|
||||
@ -1044,7 +1043,7 @@ class SFTP extends SSH2
|
||||
*
|
||||
* @param string $dir
|
||||
* @param bool $raw
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @throws \UnexpectedValueException on receipt of unexpected packets
|
||||
* @access private
|
||||
*/
|
||||
@ -1349,7 +1348,7 @@ class SFTP extends SSH2
|
||||
* Returns an array on success and false otherwise.
|
||||
*
|
||||
* @param string $filename
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access public
|
||||
*/
|
||||
public function stat($filename)
|
||||
@ -1406,7 +1405,7 @@ class SFTP extends SSH2
|
||||
* Returns an array on success and false otherwise.
|
||||
*
|
||||
* @param string $filename
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access public
|
||||
*/
|
||||
public function lstat($filename)
|
||||
@ -1474,7 +1473,7 @@ class SFTP extends SSH2
|
||||
* @param string $filename
|
||||
* @param int $type
|
||||
* @throws \UnexpectedValueException on receipt of unexpected packets
|
||||
* @return mixed
|
||||
* @return array|false
|
||||
* @access private
|
||||
*/
|
||||
private function stat_helper($filename, $type)
|
||||
@ -2344,7 +2343,7 @@ class SFTP extends SSH2
|
||||
* @param int $length
|
||||
* @param callable|null $progressCallback
|
||||
* @throws \UnexpectedValueException on receipt of unexpected packets
|
||||
* @return mixed
|
||||
* @return string|false
|
||||
* @access public
|
||||
*/
|
||||
public function get($remote_file, $local_file = false, $offset = 0, $length = -1, $progressCallback = null)
|
||||
@ -2846,7 +2845,7 @@ class SFTP extends SSH2
|
||||
* Gets file type
|
||||
*
|
||||
* @param string $path
|
||||
* @return mixed
|
||||
* @return string|false
|
||||
* @access public
|
||||
*/
|
||||
public function filetype($path)
|
||||
@ -3500,7 +3499,7 @@ class SFTP extends SSH2
|
||||
/**
|
||||
* Get supported SFTP versions
|
||||
*
|
||||
* @return array
|
||||
* @return int|false
|
||||
* @access public
|
||||
*/
|
||||
public function getNegotiatedVersion()
|
||||
@ -3531,13 +3530,13 @@ class SFTP extends SSH2
|
||||
* Disconnect
|
||||
*
|
||||
* @param int $reason
|
||||
* @return bool
|
||||
* @return false
|
||||
* @access protected
|
||||
*/
|
||||
protected function disconnect_helper($reason)
|
||||
{
|
||||
$this->pwd = false;
|
||||
parent::disconnect_helper($reason);
|
||||
return parent::disconnect_helper($reason);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -338,7 +338,7 @@ class Stream
|
||||
* Write to stream
|
||||
*
|
||||
* @param string $data
|
||||
* @return mixed
|
||||
* @return int|false
|
||||
* @access public
|
||||
*/
|
||||
private function _stream_write($data)
|
||||
|
@ -48,6 +48,7 @@
|
||||
namespace phpseclib3\Net;
|
||||
|
||||
use phpseclib3\Crypt\Blowfish;
|
||||
use phpseclib3\Crypt\Common\SymmetricKey;
|
||||
use phpseclib3\Crypt\Hash;
|
||||
use phpseclib3\Crypt\Random;
|
||||
use phpseclib3\Crypt\RC4;
|
||||
@ -233,7 +234,7 @@ class SSH2
|
||||
* Server Identifier
|
||||
*
|
||||
* @see self::getServerIdentification()
|
||||
* @var array|false
|
||||
* @var string|false
|
||||
* @access private
|
||||
*/
|
||||
protected $server_identifier = false;
|
||||
@ -1044,7 +1045,7 @@ class SSH2
|
||||
|
||||
/**
|
||||
* The authentication methods that may productively continue authentication.
|
||||
*
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc4252#section-5.1
|
||||
* @var array|null
|
||||
* @access private
|
||||
@ -1116,7 +1117,6 @@ class SSH2
|
||||
* @param int $port
|
||||
* @param int $timeout
|
||||
* @see self::login()
|
||||
* @return SSH2|void
|
||||
* @access public
|
||||
*/
|
||||
public function __construct($host, $port = 22, $timeout = 10)
|
||||
@ -2027,7 +2027,7 @@ class SSH2
|
||||
* \phpseclib3\Crypt\Common\SymmetricKey.
|
||||
*
|
||||
* @param string $algorithm Name of the encryption algorithm
|
||||
* @return mixed Instance of \phpseclib3\Crypt\Common\SymmetricKey or null for unknown
|
||||
* @return SymmetricKey|null
|
||||
* @access private
|
||||
*/
|
||||
private static function encryption_algorithm_to_crypt_instance($algorithm)
|
||||
@ -2076,7 +2076,7 @@ class SSH2
|
||||
* \phpseclib3\Crypt\Hash.
|
||||
*
|
||||
* @param string $algorithm Name of the encryption algorithm
|
||||
* @return mixed Instance of \phpseclib3\Crypt\Hash or null for unknown
|
||||
* @return array{Hash, int}|null
|
||||
* @access private
|
||||
*/
|
||||
private static function mac_algorithm_to_hash_instance($algorithm)
|
||||
@ -4051,7 +4051,7 @@ class SSH2
|
||||
* @param string $data
|
||||
* @param string $logged
|
||||
* @see self::_get_binary_packet()
|
||||
* @return bool
|
||||
* @return void
|
||||
* @access private
|
||||
*/
|
||||
protected function send_binary_packet($data, $logged = null)
|
||||
@ -4313,7 +4313,7 @@ class SSH2
|
||||
*
|
||||
* @param int $client_channel
|
||||
* @param bool $want_reply
|
||||
* @return bool
|
||||
* @return void
|
||||
* @access private
|
||||
*/
|
||||
private function close_channel($client_channel, $want_reply = false)
|
||||
@ -4350,7 +4350,7 @@ class SSH2
|
||||
* Disconnect
|
||||
*
|
||||
* @param int $reason
|
||||
* @return bool
|
||||
* @return false
|
||||
* @access protected
|
||||
*/
|
||||
protected function disconnect_helper($reason)
|
||||
@ -4519,7 +4519,7 @@ class SSH2
|
||||
/**
|
||||
* Return the server identification.
|
||||
*
|
||||
* @return string
|
||||
* @return string|false
|
||||
* @access public
|
||||
*/
|
||||
public function getServerIdentification()
|
||||
@ -4916,7 +4916,7 @@ class SSH2
|
||||
* Caching this the first time you connect to a server and checking the result on subsequent connections
|
||||
* is recommended. Returns false if the server signature is not signed correctly with the public host key.
|
||||
*
|
||||
* @return mixed
|
||||
* @return string|false
|
||||
* @throws \RuntimeException on badly formatted keys
|
||||
* @throws \phpseclib3\Exception\NoSupportedAlgorithmsException when the key isn't in a supported format
|
||||
* @access public
|
||||
@ -5151,7 +5151,7 @@ class SSH2
|
||||
|
||||
/**
|
||||
* Return the list of authentication methods that may productively continue authentication.
|
||||
*
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc4252#section-5.1
|
||||
* @return array|null
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user