line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::X509::InfoAccessBase; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
398
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
23
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use parent qw( Crypt::Perl::X509::Extension ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
55
|
use Crypt::Perl::X509::GeneralName (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
9
|
1
|
|
|
1
|
|
3
|
use Crypt::Perl::X (); |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
60
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5
|
use constant ASN1 => Crypt::Perl::X509::GeneralName::ASN1() . <
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
80
|
|
12
|
|
|
|
|
|
|
InfoAccess ::= SEQUENCE OF AccessDescription |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
AccessDescription ::= SEQUENCE { |
15
|
|
|
|
|
|
|
accessMethod OBJECT IDENTIFIER, |
16
|
|
|
|
|
|
|
accessLocation ANY -- GeneralName |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
END |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use constant { |
21
|
1
|
|
|
|
|
267
|
asn1_macro => 'InfoAccess', |
22
|
|
|
|
|
|
|
CRITICAL => 0, |
23
|
1
|
|
|
1
|
|
5
|
}; |
|
1
|
|
|
|
|
2
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
26
|
12
|
|
|
12
|
0
|
72
|
my ($class, @accessDescrs) = @_; |
27
|
|
|
|
|
|
|
|
28
|
12
|
50
|
|
|
|
69
|
if (!@accessDescrs) { |
29
|
0
|
|
|
|
|
0
|
die Crypt::Perl::X::create('Generic', 'Need access descriptions!'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
12
|
|
|
|
|
79
|
return bless \@accessDescrs, $class; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub _encode_params { |
36
|
12
|
|
|
12
|
|
39
|
my ($self) = @_; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $data = [ |
39
|
|
|
|
|
|
|
map { |
40
|
12
|
50
|
|
|
|
88
|
$self->can("OID_$_->[0]") or die( Crypt::Perl::X::create('Generic', "Unknown method: “$_->[0]”") ); |
|
24
|
|
|
|
|
1624
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
{ |
43
|
|
|
|
|
|
|
accessMethod => $self->can("OID_$_->[0]")->(), |
44
|
24
|
|
|
|
|
139
|
accessLocation => Crypt::Perl::X509::GeneralName->new( @{$_}[1,2] )->encode(), |
|
24
|
|
|
|
|
157
|
|
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} @$self, |
47
|
|
|
|
|
|
|
]; |
48
|
|
|
|
|
|
|
|
49
|
12
|
|
|
|
|
1223
|
return $data; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |