mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-30 04:39:21 +01:00
Merge branch 'asn1-class-fix' into asn1-class-fix-test
This commit is contained in:
commit
3f226be600
@ -8,7 +8,7 @@
|
||||
- SFTP: fix issue with extended attributes on 64-bit PHP installs (#1248)
|
||||
- SSH2: more channel handling updates (#1200)
|
||||
- X509: use anonymous functions in PHP >= 5.3.0
|
||||
- X509: revise logic for validateLogic (#1213)
|
||||
- X509: revise logic for validateSignature (#1213)
|
||||
- X509: fix 7.2 error when extensions were removed and new ones added (#1243)
|
||||
- fix float to int conversions on ARM CPU's (#1220)
|
||||
|
||||
|
@ -666,7 +666,7 @@ class File_ASN1
|
||||
$childClass = $tempClass = FILE_ASN1_CLASS_UNIVERSAL;
|
||||
$constant = null;
|
||||
if (isset($temp['constant'])) {
|
||||
$tempClass = isset($temp['class']) ? $temp['class'] : FILE_ASN1_CLASS_CONTEXT_SPECIFIC;
|
||||
$tempClass = $temp['type'];
|
||||
}
|
||||
if (isset($child['class'])) {
|
||||
$childClass = $child['class'];
|
||||
@ -729,7 +729,7 @@ class File_ASN1
|
||||
$temp = $decoded['content'][$i];
|
||||
$tempClass = FILE_ASN1_CLASS_UNIVERSAL;
|
||||
if (isset($temp['constant'])) {
|
||||
$tempClass = isset($temp['class']) ? $temp['class'] : FILE_ASN1_CLASS_CONTEXT_SPECIFIC;
|
||||
$tempClass = $temp['type'];
|
||||
}
|
||||
|
||||
foreach ($mapping['children'] as $key => $child) {
|
||||
|
@ -3698,7 +3698,7 @@ class File_X509
|
||||
'tbsCertificate' =>
|
||||
array(
|
||||
'version' => 'v3',
|
||||
'serialNumber' => $serialNumber, // $this->setserialNumber()
|
||||
'serialNumber' => $serialNumber, // $this->setSerialNumber()
|
||||
'signature' => array('algorithm' => $signatureAlgorithm),
|
||||
'issuer' => false, // this is going to be overwritten later
|
||||
'validity' => array(
|
||||
|
Loading…
Reference in New Issue
Block a user