mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
X509: change return value for validateSignature when cert isn't loaded
This commit is contained in:
parent
d95f5946eb
commit
d52f217512
@ -2002,7 +2002,7 @@ class File_X509 {
|
|||||||
function validateSignature($caonly = true)
|
function validateSignature($caonly = true)
|
||||||
{
|
{
|
||||||
if (!is_array($this->currentCert) || !isset($this->signatureSubject)) {
|
if (!is_array($this->currentCert) || !isset($this->signatureSubject)) {
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO:
|
/* TODO:
|
||||||
|
Loading…
Reference in New Issue
Block a user