mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 08:38:29 +00:00
Fix a few E_NOTICEs
This commit is contained in:
parent
11872fe747
commit
e2ae5100c2
@ -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):
|
||||
|
@ -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);
|
||||
/**#@-*/
|
||||
|
||||
/**#@+
|
||||
|
Loading…
x
Reference in New Issue
Block a user