mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
ed975a270d
@ -1333,9 +1333,14 @@ class RSA
|
|||||||
xml_set_character_data_handler($xml, '_data_handler');
|
xml_set_character_data_handler($xml, '_data_handler');
|
||||||
// add <xml></xml> to account for "dangling" tags like <BitStrength>...</BitStrength> that are sometimes added
|
// add <xml></xml> to account for "dangling" tags like <BitStrength>...</BitStrength> that are sometimes added
|
||||||
if (!xml_parse($xml, '<xml>' . $key . '</xml>')) {
|
if (!xml_parse($xml, '<xml>' . $key . '</xml>')) {
|
||||||
|
xml_parser_free($xml);
|
||||||
|
unset($xml);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xml_parser_free($xml);
|
||||||
|
unset($xml);
|
||||||
|
|
||||||
return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : false;
|
return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : false;
|
||||||
// from PuTTY's SSHPUBK.C
|
// from PuTTY's SSHPUBK.C
|
||||||
case self::PRIVATE_FORMAT_PUTTY:
|
case self::PRIVATE_FORMAT_PUTTY:
|
||||||
|
Loading…
Reference in New Issue
Block a user