mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 02:01:21 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
567a439152
@ -4003,11 +4003,11 @@ class X509
|
|||||||
$version = isset($tbsCertList['version']) ? $tbsCertList['version'] : 0;
|
$version = isset($tbsCertList['version']) ? $tbsCertList['version'] : 0;
|
||||||
if (!$version) {
|
if (!$version) {
|
||||||
if (!empty($tbsCertList['crlExtensions'])) {
|
if (!empty($tbsCertList['crlExtensions'])) {
|
||||||
$version = 1; // v2.
|
$version = 'v2'; // v2.
|
||||||
} elseif (!empty($tbsCertList['revokedCertificates'])) {
|
} elseif (!empty($tbsCertList['revokedCertificates'])) {
|
||||||
foreach ($tbsCertList['revokedCertificates'] as $cert) {
|
foreach ($tbsCertList['revokedCertificates'] as $cert) {
|
||||||
if (!empty($cert['crlEntryExtensions'])) {
|
if (!empty($cert['crlEntryExtensions'])) {
|
||||||
$version = 1; // v2.
|
$version = 'v2'; // v2.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user