line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::X509::Extension::policyConstraints; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
713
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=encoding utf-8 |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Crypt::Perl::X509::Extension::policyConstraints |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $usage_obj = Crypt::Perl::X509::Extension::policyConstraints->new( |
15
|
|
|
|
|
|
|
requireExplicitPolicy => 4, |
16
|
|
|
|
|
|
|
inhibitPolicyMapping => 6, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SEE ALSO |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
L |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
|
6
|
use parent qw( Crypt::Perl::X509::Extension ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
|
67
|
use constant OID => '2.5.29.36'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
63
|
|
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
1
|
|
5
|
use constant CRITICAL => 1; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
80
|
|
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
1
|
|
7
|
use constant ASN1 => <
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
133
|
|
32
|
|
|
|
|
|
|
SkipCerts ::= INTEGER |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
policyConstraints ::= SEQUENCE { |
35
|
|
|
|
|
|
|
requireExplicitPolicy [0] SkipCerts OPTIONAL, |
36
|
|
|
|
|
|
|
inhibitPolicyMapping [1] SkipCerts OPTIONAL |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
END |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub new { |
41
|
6
|
|
|
6
|
0
|
40
|
my ($class, %opts) = @_; |
42
|
|
|
|
|
|
|
|
43
|
6
|
|
|
|
|
52
|
return bless \%opts, $class; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub _encode_params { |
47
|
6
|
|
|
6
|
|
24
|
my ($self) = @_; |
48
|
|
|
|
|
|
|
|
49
|
6
|
|
|
|
|
43
|
return { %$self }; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |