mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 04:57:53 +00:00
DSA: pass password parameter correctly to OpenSSH::load
This commit is contained in:
parent
327f555b7c
commit
c5a9a66d69
@ -48,7 +48,7 @@ abstract class OpenSSH extends Progenitor
|
|||||||
*/
|
*/
|
||||||
public static function load($key, $password = '')
|
public static function load($key, $password = '')
|
||||||
{
|
{
|
||||||
$parsed = parent::load($key, 'ssh-dss');
|
$parsed = parent::load($key, $password);
|
||||||
|
|
||||||
if (isset($parsed['paddedKey'])) {
|
if (isset($parsed['paddedKey'])) {
|
||||||
list($type) = Strings::unpackSSH2('s', $parsed['paddedKey']);
|
list($type) = Strings::unpackSSH2('s', $parsed['paddedKey']);
|
||||||
|
Loading…
Reference in New Issue
Block a user