mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +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();
|
$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):
|
||||||
|
@ -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);
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
/**#@+
|
/**#@+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user