fix bad merge
This commit is contained in:
parent
5335dbde3e
commit
974a30d4d9
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttCertIssuer
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttCertIssuer
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttCertIssuer
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'v1Form' => GeneralNames::MAP,
|
||||
'v2Form' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
] + V2Form::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttCertValidityPeriod
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttCertValidityPeriod
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttCertValidityPeriod
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'notBeforeTime' => ['type' => ASN1::TYPE_GENERALIZED_TIME],
|
||||
'notAfterTime' => ['type' => ASN1::TYPE_GENERALIZED_TIME],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttCertVersion
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttCertVersion
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttCertVersion
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v2'],
|
||||
];
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttCertVersion
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttCertVersion
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttCertVersionV1
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v1'],
|
||||
];
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttributeCertificateInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeCertificateInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeCertificateInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'optional' => true,
|
||||
'default' => 'v2',
|
||||
] + AttCertVersion::MAP,
|
||||
'holder' => Holder::MAP,
|
||||
'issuer' => AttCertIssuer::MAP,
|
||||
'signature' => AlgorithmIdentifier::MAP,
|
||||
'serialNumber' => CertificateSerialNumber::MAP,
|
||||
'attrCertValidityPeriod' => AttCertValidityPeriod::MAP,
|
||||
'attributes' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 0,
|
||||
'max' => -1,
|
||||
'children' => Attribute::MAP,
|
||||
],
|
||||
'issuerUniqueID' => ['optional' => true] + UniqueIdentifier::MAP,
|
||||
'extensions' => ['optional' => true] + Extensions::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttributeCertificateInfoV1
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeCertificateInfoV1
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeCertificateInfoV1
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'optional' => true,
|
||||
'default' => 'v1',
|
||||
] + AttCertVersionV1::MAP,
|
||||
'subject' => [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'baseCertificateID' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
] + IssuerSerial::MAP,
|
||||
'subjectName' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
] + GeneralNames::MAP,
|
||||
],
|
||||
],
|
||||
'issuer' => GeneralNames::MAP,
|
||||
'signature' => AlgorithmIdentifier::MAP,
|
||||
'serialNumber' => CertificateSerialNumber::MAP,
|
||||
'attCertValidityPeriod' => AttCertValidityPeriod::MAP,
|
||||
'attributes' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 0,
|
||||
'max' => -1,
|
||||
'children' => Attribute::MAP,
|
||||
],
|
||||
'issuerUniqueID' => ['optional' => true] + UniqueIdentifier::MAP,
|
||||
'extensions' => ['optional' => true] + Extensions::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttributeCertificateV1
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeCertificateV1
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeCertificateV1
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'acinfo' => AttributeCertificateInfoV1::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'signature' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* AttributeCertificateV2
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeCertificateV2
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeCertificateV2
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'acinfo' => AttributeCertificateInfo::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'signature' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* CMSVersion
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CMSVersion
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CMSVersion
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v0', 'v1', 'v2', 'v4', 'v5'],
|
||||
];
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* CertificateChoices
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificateChoices
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificateChoices
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'certificate' => Certificate::MAP,
|
||||
'extendedCertificate' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + ExtendedCertificate::MAP,
|
||||
'v1AttrCert' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + AttributeCertificateV1::MAP,
|
||||
'v2AttrCert' => [
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + AttributeCertificateV2::MAP,
|
||||
'other' => [
|
||||
'constant' => 3,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + OtherCertificateFormat::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* CertificateSet
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificateSet
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificateSet
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => CertificateChoices::MAP,
|
||||
];
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* CompressedData
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CompressedData
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CompressedData
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => CMSVersion::MAP,
|
||||
'compressionAlgorithms' => CompressionAlgorithmIdentifiers::MAP,
|
||||
'encapContentInfo' => EncapsulatedContentInfo::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* CompressionAlgorithmIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CompressionAlgorithmIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CompressionAlgorithmIdentifier extends AlgorithmIdentifier
|
||||
{
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ContentInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ContentInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ContentInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'contentType' => ContentType::MAP,
|
||||
'content' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ContentType
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ContentType
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ContentType
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_OBJECT_IDENTIFIER,
|
||||
];
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* DigestAlgorithmIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DigestAlgorithmIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DigestAlgorithmIdentifier extends AlgorithmIdentifier
|
||||
{
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* DigestAlgorithmIdentifiers
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DigestAlgorithmIdentifiers
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DigestAlgorithmIdentifiers extends AlgorithmIdentifier
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => DigestAlgorithmIdentifier::MAP
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ESSCertID
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ESSCertID
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ESSCertID
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'certHash' => Hash::MAP, // sha1 hash of the entire cert
|
||||
'issuerSerial' => ['optional' => true] + IssuerSerial::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ESSCertIDv2
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ESSCertIDv2
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ESSCertIDv2
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'hashAlgorithm' => [
|
||||
'optional' => true,
|
||||
'default' => ['algorithm' => 'id-sha256', 'parameters' => ['null' => '']],
|
||||
] + AlgorithmIdentifier::MAP,
|
||||
'certHash' => Hash::MAP,
|
||||
'issuerSerial' => ['optional' => true] + IssuerSerial::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* EncapsulatedContentInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* EncapsulatedContentInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class EncapsulatedContentInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'eContentType' => ContentType::MAP,
|
||||
'eContent' => [
|
||||
'type' => ASN1::TYPE_OCTET_STRING,
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ExtendedCertificate
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ExtendedCertificate
|
||||
*
|
||||
* mapping is from <ftp://ftp.rsasecurity.com/pub/pkcs/ascii/pkcs-6.asc>
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ExtendedCertificate
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'extendedCertificateInfo' => ExtendedCertificateInfo::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'attributes' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ExtendedCertificateInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ExtendedCertificateInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ExtendedCertificateInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'certificate' => Certificate::MAP,
|
||||
'attributes' => Attributes::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Hash
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Hash
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Hash
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Holder
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Holder
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Holder
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'baseCertificateID' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
] + IssuerSerial::MAP,
|
||||
'entityName' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
] + GeneralNames::MAP,
|
||||
'objectDigestInfo' => [
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
] + ObjectDigestInfo::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* IssuerAndSerialNumber
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* IssuerAndSerialNumber
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class IssuerAndSerialNumber
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'issuer' => Name::MAP,
|
||||
'serialNumber' => CertificateSerialNumber::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* IssuerSerial
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* IssuerSerial
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class IssuerSerial
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'issuer' => GeneralNames::MAP,
|
||||
'serialNumber' => CertificateSerialNumber::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* ObjectDigestInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ObjectDigestInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ObjectDigestInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'digestedObjectType' => [
|
||||
'type' => ASN1::TYPE_ENUMERATED,
|
||||
'children' => [
|
||||
'publicKey',
|
||||
'publicKeyCert',
|
||||
'otherObjectTypes',
|
||||
],
|
||||
],
|
||||
'otherObjectTypeID' => [
|
||||
'type' => ASN1::TYPE_OBJECT_IDENTIFIER,
|
||||
'optiona' => true,
|
||||
],
|
||||
'digestAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'objectDigest' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* OtherCertificateFormat
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OtherCertificateFormat
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OtherCertificateFormat
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'otherCertFormat' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'otherCert' => ['type' => ASN1::TYPE_ANY],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* OtherRevocationInfoFormat
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OtherRevocationInfoFormat
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OtherRevocationInfoFormat
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'otherRevInfoFormat' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'otherRevInfo' => ['type' => ASN1::TYPE_ANY],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* RevocationInfoChoice
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* RevocationInfoChoice
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class RevocationInfoChoice
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'crl' => CertificateList::MAP,
|
||||
'other' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + OtherRevocationInfoFormat::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* RevocationInfoChoices
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* RevocationInfoChoices
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class RevocationInfoChoices
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => RevocationInfoChoice::MAP,
|
||||
];
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignatureAlgorithmIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignatureAlgorithmIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignatureAlgorithmIdentifier extends AlgorithmIdentifier
|
||||
{
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignatureValue
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignatureValue
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignatureValue
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignedAttributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignedAttributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignedAttributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => Attribute::MAP,
|
||||
];
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignedData
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignedData
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignedData
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => CMSVersion::MAP,
|
||||
'digestAlgorithms' => DigestAlgorithmIdentifiers::MAP,
|
||||
'encapContentInfo' => EncapsulatedContentInfo::MAP,
|
||||
'certificates' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + CertificateSet::MAP,
|
||||
'crls' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + RevocationInfoChoices::MAP,
|
||||
'signerInfos' => SignerInfos::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignerIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignerIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignerIdentifier
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'issuerAndSerialNumber' => IssuerAndSerialNumber::MAP,
|
||||
'subjectKeyIdentifier' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
] + SubjectKeyIdentifier::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignerInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignerInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignerInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => CMSVersion::MAP,
|
||||
'sid' => SignerIdentifier::MAP,
|
||||
'digestAlgorithm' => DigestAlgorithmIdentifier::MAP,
|
||||
'signedAttrs' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + SignedAttributes::MAP,
|
||||
'signatureAlgorithm' => SignatureAlgorithmIdentifier::MAP,
|
||||
'signature' => SignatureValue::MAP,
|
||||
'unsignedAttrs' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + UnsignedAttributes::MAP,
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SignerInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SignerInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SignerInfos
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => SignerInfo::MAP,
|
||||
];
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SigningCertificate
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SigningCertificate
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SigningCertificate
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'certs' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => ESSCertID::MAP,
|
||||
],
|
||||
'policies' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => PolicyInformation::MAP,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SigningCertificate
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SigningCertificate
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SigningCertificate
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'certs' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => ESSCertIDv2::MAP,
|
||||
],
|
||||
'policies' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => PolicyInformation::MAP,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SubjectKeyIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* SubjectKeyIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class SubjectKeyIdentifier
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* UnsignedAttributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* UnsignedAttributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class UnsignedAttributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => Attribute::MAP,
|
||||
];
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* V2Form
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* V2Form
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class V2Form
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'issuerName' => ['optional' => true] + GeneralNames::MAP,
|
||||
'baseCertificateID' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
] + IssuerSerial::MAP,
|
||||
'objectDigestInfo' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
] + ObjectDigestInfo::MAP,
|
||||
],
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue