diff --git a/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php b/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php index 51b03f0e..5d97c4a7 100644 --- a/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php +++ b/phpseclib/Crypt/Common/Formats/Keys/PuTTY.php @@ -78,7 +78,7 @@ abstract class PuTTY * @param string $password * @return array */ - protected static function load($key, $password) + public static function load($key, $password) { if (!is_string($key)) { throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 4e20a1f9..4136301e 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -152,7 +152,7 @@ class Stream * @return string * @access private */ - private function parse_path($path) + protected function parse_path($path) { $orig = $path; extract(parse_url($path) + ['port' => 22]);