Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2024-09-15 21:43:31 -05:00
commit d84925124d

View File

@ -2904,11 +2904,11 @@ class X509
$version = isset($tbsCertList['version']) ? $tbsCertList['version'] : 0;
if (!$version) {
if (!empty($tbsCertList['crlExtensions'])) {
$version = 1; // v2.
$version = 'v2'; // v2.
} elseif (!empty($tbsCertList['revokedCertificates'])) {
foreach ($tbsCertList['revokedCertificates'] as $cert) {
if (!empty($cert['crlEntryExtensions'])) {
$version = 1; // v2.
$version = 'v2'; // v2.
}
}
}