Rev 874 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
827 | daniel-mar | 1 | <?php |
2 | |||
3 | /** |
||
4 | * IssuingDistributionPoint |
||
5 | * |
||
6 | * PHP version 5 |
||
7 | * |
||
8 | * @author Jim Wigginton <terrafrost@php.net> |
||
9 | * @copyright 2016 Jim Wigginton |
||
10 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
||
11 | * @link http://phpseclib.sourceforge.net |
||
12 | */ |
||
13 | |||
14 | namespace phpseclib3\File\ASN1\Maps; |
||
15 | |||
16 | use phpseclib3\File\ASN1; |
||
17 | |||
18 | /** |
||
19 | * IssuingDistributionPoint |
||
20 | * |
||
21 | * @author Jim Wigginton <terrafrost@php.net> |
||
22 | */ |
||
23 | abstract class IssuingDistributionPoint |
||
24 | { |
||
25 | const MAP = [ |
||
26 | 'type' => ASN1::TYPE_SEQUENCE, |
||
27 | 'children' => [ |
||
28 | 'distributionPoint' => [ |
||
29 | 'constant' => 0, |
||
30 | 'optional' => true, |
||
31 | 'explicit' => true |
||
32 | ] + DistributionPointName::MAP, |
||
33 | 'onlyContainsUserCerts' => [ |
||
34 | 'type' => ASN1::TYPE_BOOLEAN, |
||
35 | 'constant' => 1, |
||
36 | 'optional' => true, |
||
37 | 'default' => false, |
||
38 | 'implicit' => true |
||
39 | ], |
||
40 | 'onlyContainsCACerts' => [ |
||
41 | 'type' => ASN1::TYPE_BOOLEAN, |
||
42 | 'constant' => 2, |
||
43 | 'optional' => true, |
||
44 | 'default' => false, |
||
45 | 'implicit' => true |
||
46 | ], |
||
47 | 'onlySomeReasons' => [ |
||
48 | 'constant' => 3, |
||
49 | 'optional' => true, |
||
50 | 'implicit' => true |
||
51 | ] + ReasonFlags::MAP, |
||
52 | 'indirectCRL' => [ |
||
53 | 'type' => ASN1::TYPE_BOOLEAN, |
||
54 | 'constant' => 4, |
||
55 | 'optional' => true, |
||
56 | 'default' => false, |
||
57 | 'implicit' => true |
||
58 | ], |
||
59 | 'onlyContainsAttributeCerts' => [ |
||
60 | 'type' => ASN1::TYPE_BOOLEAN, |
||
61 | 'constant' => 5, |
||
62 | 'optional' => true, |
||
63 | 'default' => false, |
||
64 | 'implicit' => true |
||
65 | ] |
||
66 | ] |
||
67 | ]; |
||
68 | } |