Fix a few E_NOTICEs

This commit is contained in:
terrafrost 2012-08-28 03:04:15 -05:00
parent 11872fe747
commit e2ae5100c2
2 changed files with 8 additions and 8 deletions

View File

@ -1556,15 +1556,11 @@ class File_X509 {
$date = time(); $date = time();
} }
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore']['generalTime']; $notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
if (!isset($notBefore)) { $notBefore = isset($notBefore['generalTime']) ? $notBefore['generalTime'] : $notBefore['utcTime'];
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore']['utcTime'];
}
$notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter']['generalTime']; $notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter'];
if (!isset($notAfter)) { $notAfter = isset($notAfter['generalTime']) ? $notAfter['generalTime'] : $notAfter['utcTime'];
$notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter']['utcTime'];
}
switch (true) { switch (true) {
case $date < @strtotime($notBefore): case $date < @strtotime($notBefore):

View File

@ -163,6 +163,10 @@ define('NET_SSH2_LOG_COMPLEX', 2);
* Outputs the content real-time * Outputs the content real-time
*/ */
define('NET_SSH2_LOG_REALTIME', 3); define('NET_SSH2_LOG_REALTIME', 3);
/**
* Dumps the content real-time to a file
*/
define('NET_SSH2_LOG_REALTIME_FILE', 4);
/**#@-*/ /**#@-*/
/**#@+ /**#@+