line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::X509::Extension::subjectKeyIdentifier; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
484
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=encoding utf-8 |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Crypt::Perl::X509::Extension::keyUsage |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $usage_obj = Crypt::Perl::X509::Extension::subjectKeyIdentifier->new( |
15
|
|
|
|
|
|
|
$subj_key_id #octet string |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SEE ALSO |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
L |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
4
|
use parent qw( Crypt::Perl::X509::Extension ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
|
45
|
use Crypt::Perl::X (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
use constant { |
29
|
1
|
|
|
|
|
62
|
OID => '2.5.29.14', |
30
|
|
|
|
|
|
|
CRITICAL => 0, |
31
|
1
|
|
|
1
|
|
157
|
}; |
|
1
|
|
|
|
|
3
|
|
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
|
5
|
use constant ASN1 => <
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
182
|
|
34
|
|
|
|
|
|
|
subjectKeyIdentifier ::= OCTET STRING |
35
|
|
|
|
|
|
|
END |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub new { |
38
|
6
|
|
|
6
|
0
|
106
|
my ($class, $octet_str) = @_; |
39
|
|
|
|
|
|
|
|
40
|
6
|
50
|
|
|
|
24
|
if (!length $octet_str) { |
41
|
0
|
|
|
|
|
0
|
die Crypt::Perl::X::create('Generic', 'Need data!'); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
6
|
|
|
|
|
49
|
return bless \$octet_str, $class; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub _encode_params { |
48
|
6
|
|
|
6
|
|
34
|
my ($self) = @_; |
49
|
|
|
|
|
|
|
|
50
|
6
|
|
|
|
|
45
|
return $$self; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |