line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::SSLLabs::Chain; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
20
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
85
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
66
|
|
5
|
3
|
|
|
3
|
|
1248
|
use WebService::SSLLabs::ChainCert(); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
547
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.33'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
0
|
|
|
0
|
1
|
|
my ( $class, $json ) = @_; |
11
|
0
|
|
|
|
|
|
my $self = $json; |
12
|
0
|
|
|
|
|
|
bless $self, $class; |
13
|
0
|
0
|
|
|
|
|
if ( defined $self->{certs} ) { |
14
|
0
|
|
|
|
|
|
my @certs = @{ $self->{certs} }; |
|
0
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
$self->{certs} = []; |
16
|
0
|
|
|
|
|
|
foreach my $cert (@certs) { |
17
|
0
|
|
|
|
|
|
push @{ $self->{certs} }, |
|
0
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
WebService::SSLLabs::ChainCert->new($cert); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else { |
22
|
0
|
|
|
|
|
|
$self->{certs} = []; |
23
|
|
|
|
|
|
|
} |
24
|
0
|
|
|
|
|
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub certs { |
28
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
29
|
0
|
|
|
|
|
|
return @{ $self->{certs} }; |
|
0
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub issues { |
33
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
34
|
0
|
|
|
|
|
|
return $self->{issues}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |