mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
getLoadedFormat() threw exception for loadFormat()-loaded keys
This commit is contained in:
parent
327a13d133
commit
94d3403ed3
@ -206,6 +206,7 @@ abstract class AsymmetricKey
|
||||
$components['format'] = $format;
|
||||
|
||||
$new = static::onLoad($components);
|
||||
$new->format = $format;
|
||||
return $new instanceof PrivateKey ?
|
||||
$new->withPassword($password) :
|
||||
$new;
|
||||
|
Loading…
Reference in New Issue
Block a user