DSA: pass password parameter correctly to OpenSSH::load

This commit is contained in:
terrafrost 2019-06-08 23:18:21 -05:00
parent 327f555b7c
commit c5a9a66d69

View File

@ -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']);