From d52f21751232cf3695d8c0e7557b2c35d8a16ae5 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 26 Jul 2013 15:40:16 -0500 Subject: [PATCH] X509: change return value for validateSignature when cert isn't loaded --- phpseclib/File/X509.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 837fe319..81f41d79 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2002,7 +2002,7 @@ class File_X509 { function validateSignature($caonly = true) { if (!is_array($this->currentCert) || !isset($this->signatureSubject)) { - return 0; + return NULL; } /* TODO: