diff --git a/src/helpers/x509.php b/src/helpers/x509.php index af4a000..ecbe189 100644 --- a/src/helpers/x509.php +++ b/src/helpers/x509.php @@ -491,12 +491,12 @@ private static function parsecrl($crl, $oidprint = false) { unset($curr[$key]); continue; } - if($value['type'] == '17' && !array_key_exists('thisUpdate', $curr)) { + if(($value['type'] == '17' || $value['type'] == '18') && !array_key_exists('thisUpdate', $curr)) { $curr['thisUpdate']=hex2bin($value['value_hex']); unset($curr[$key]); continue; } - if($value['type'] == '17' && !array_key_exists('nextUpdate', $curr)) { + if(($value['type'] == '17' || $value['type'] == '18') && !array_key_exists('nextUpdate', $curr)) { $curr['nextUpdate']=hex2bin($value['value_hex']); unset($curr[$key]); continue; @@ -612,11 +612,13 @@ private static function parsecrl($crl, $oidprint = false) { $differ=array_diff_key($arrModel['TBSCertList'],$crl['TBSCertList']); if(count($differ) > 0) { foreach($differ as $key=>$val) { + // TODO? } return false; } } else { foreach($differ as $key=>$val) { + // TODO? } return false; }