From c5a9a66d6924c67235095fda9ab38832c3a6f78a Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 8 Jun 2019 23:18:21 -0500 Subject: [PATCH] DSA: pass password parameter correctly to OpenSSH::load --- phpseclib/Crypt/DSA/Keys/OpenSSH.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/DSA/Keys/OpenSSH.php b/phpseclib/Crypt/DSA/Keys/OpenSSH.php index 1a06b1d0..f5a64833 100644 --- a/phpseclib/Crypt/DSA/Keys/OpenSSH.php +++ b/phpseclib/Crypt/DSA/Keys/OpenSSH.php @@ -48,7 +48,7 @@ abstract class OpenSSH extends Progenitor */ public static function load($key, $password = '') { - $parsed = parent::load($key, 'ssh-dss'); + $parsed = parent::load($key, $password); if (isset($parsed['paddedKey'])) { list($type) = Strings::unpackSSH2('s', $parsed['paddedKey']);