line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::X509::InfoAccessBase; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
465
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use parent qw( Crypt::Perl::X509::Extension ); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
61
|
use Crypt::Perl::X509::GeneralName (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
9
|
1
|
|
|
1
|
|
15
|
use Crypt::Perl::X (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
16
|
use constant ASN1 => Crypt::Perl::X509::GeneralName::ASN1() . <
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
71
|
|
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
|
|
|
|
|
266
|
asn1_macro => 'InfoAccess', |
22
|
|
|
|
|
|
|
CRITICAL => 0, |
23
|
1
|
|
|
1
|
|
7
|
}; |
|
1
|
|
|
|
|
2
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
26
|
12
|
|
|
12
|
0
|
61
|
my ($class, @accessDescrs) = @_; |
27
|
|
|
|
|
|
|
|
28
|
12
|
50
|
|
|
|
63
|
if (!@accessDescrs) { |
29
|
0
|
|
|
|
|
0
|
die Crypt::Perl::X::create('Generic', 'Need access descriptions!'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
12
|
|
|
|
|
78
|
return bless \@accessDescrs, $class; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub _encode_params { |
36
|
12
|
|
|
12
|
|
41
|
my ($self) = @_; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $data = [ |
39
|
|
|
|
|
|
|
map { |
40
|
12
|
50
|
|
|
|
116
|
$self->can("OID_$_->[0]") or die( Crypt::Perl::X::create('Generic', "Unknown method: “$_->[0]”") ); |
|
24
|
|
|
|
|
1430
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
{ |
43
|
|
|
|
|
|
|
accessMethod => $self->can("OID_$_->[0]")->(), |
44
|
24
|
|
|
|
|
136
|
accessLocation => Crypt::Perl::X509::GeneralName->new( @{$_}[1,2] )->encode(), |
|
24
|
|
|
|
|
105
|
|
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} @$self, |
47
|
|
|
|
|
|
|
]; |
48
|
|
|
|
|
|
|
|
49
|
12
|
|
|
|
|
1174
|
return $data; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |