mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
visibility changes for phpseclib2_compat
This commit is contained in:
parent
be221d8b23
commit
a7b1d031bb
@ -78,7 +78,7 @@ abstract class PuTTY
|
|||||||
* @param string $password
|
* @param string $password
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected static function load($key, $password)
|
public static function load($key, $password)
|
||||||
{
|
{
|
||||||
if (!is_string($key)) {
|
if (!is_string($key)) {
|
||||||
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
||||||
|
@ -152,7 +152,7 @@ class Stream
|
|||||||
* @return string
|
* @return string
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
private function parse_path($path)
|
protected function parse_path($path)
|
||||||
{
|
{
|
||||||
$orig = $path;
|
$orig = $path;
|
||||||
extract(parse_url($path) + ['port' => 22]);
|
extract(parse_url($path) + ['port' => 22]);
|
||||||
|
Loading…
Reference in New Issue
Block a user