mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
Return $this->publicKey if it's available in getPublicKey() function
This commit is contained in:
parent
bdd42c448b
commit
9e803fe374
@ -2315,6 +2315,10 @@ class File_X509 {
|
||||
*/
|
||||
function getPublicKey()
|
||||
{
|
||||
if (isset($this->publicKey)) {
|
||||
return $this->publicKey;
|
||||
}
|
||||
|
||||
if (!isset($this->currentCert) || !is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user