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();
}
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore']['generalTime'];
if (!isset($notBefore)) {
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore']['utcTime'];
}
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
$notBefore = isset($notBefore['generalTime']) ? $notBefore['generalTime'] : $notBefore['utcTime'];
$notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter']['generalTime'];
if (!isset($notAfter)) {
$notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter']['utcTime'];
}
$notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter'];
$notAfter = isset($notAfter['generalTime']) ? $notAfter['generalTime'] : $notAfter['utcTime'];
switch (true) {
case $date < @strtotime($notBefore):

View File

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