| 1 | |||||||||||||||||||||||||||||
| 2 | package Net::SSLeay::OO::X509; | ||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | has 'x509' => isa => 'Int', | |||||||||||||||||||||||||||
| 7 | is => "ro", | ||||||||||||||||||||||||||||
| 8 | required => 1, | ||||||||||||||||||||||||||||
| 9 | ; | ||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 1 | has 'no_rvinc' => isa => "Bool", | |||||||||||||||||||||||||||
| 12 | is => "ro", | ||||||||||||||||||||||||||||
| 13 | ; | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 0 | ▶ | sub DESTROY { | ||||||||||||||||||||||||||
|
Subroutine
DESTROY: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 16 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 17 | 0 | $self->free; | |||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 0 | ▶ | sub free { | ||||||||||||||||||||||||||
|
Subroutine
free: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||
| 21 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 22 | 0 | my $pointer = delete $self->{x509}; | |||||||||||||||||||||||||||
| 23 | 0 | ▶ | unless ( !$pointer or $self->no_rvinc ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not $pointer or $self->no_rvinc
MC/DC0%0/2
not $pointer or $self->no_rvinc
not $pointer
$self->no_rvinc
Truth table0%0/3
not(A) or B
A= not $pointerB= $self->no_rvinc
| |||||||||||||||||||||||||||||
| 24 | 0 | Net::SSLeay::free($pointer); | |||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | # free() | ||||||||||||||||||||||||||||
| 29 | # get_ext() | ||||||||||||||||||||||||||||
| 30 | # get_ext_by_NID() | ||||||||||||||||||||||||||||
| 31 | # get_notAfter() | ||||||||||||||||||||||||||||
| 32 | # get_notBefore() | ||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | 1 | ▶ | BEGIN { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.8
| |||||||||||||||||||||||||||||
| 35 | 1 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 36 | 1 | for my $nameFunc (qw(subject_name issuer_name)) { | |||||||||||||||||||||||||||
| 37 | 2 | my $get = "get_$nameFunc"; | |||||||||||||||||||||||||||
| 38 | 2 | my $sslfunc = "Net::SSLeay::X509_$get"; | |||||||||||||||||||||||||||
| 39 | 0 | ▶ | *$get = sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 40 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 41 | 0 | require Net::SSLeay::OO::X509::Name; | |||||||||||||||||||||||||||
| 42 | 0 | my $name = &$sslfunc( $self->x509 ); | |||||||||||||||||||||||||||
| 43 | 0 | Net::SSLeay::OO::X509::Name->new(x509_name => $name ); | |||||||||||||||||||||||||||
| 44 | 2 | }; | |||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||
| 48 | 1 | ▶ | use Net::SSLeay::OO::Functions 'x509'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | # load_cert_crl_file() | ||||||||||||||||||||||||||||
| 51 | # load_cert_file() | ||||||||||||||||||||||||||||
| 52 | # load_crl_file() | ||||||||||||||||||||||||||||
| 53 | # verify_cert_error_string() | ||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||
| 55 | 1 | 1; | |||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | __END__ | ||||||||||||||||||||||||||||