| 1 | package Crypt::SSLeay::X509; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 0 | ▶ | sub not_before { | ||||||||
|
Subroutine
not_before: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 6 | 0 | my $cert = shift; | |||||||||
| 7 | 0 | not_string2time($cert->get_notBeforeString); | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub not_after { | ||||||||
|
Subroutine
not_after: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my $cert = shift; | |||||||||
| 12 | 0 | not_string2time($cert->get_notAfterString); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub not_string2time { | ||||||||
|
Subroutine
not_string2time: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 16 | 0 | my $string = shift; | |||||||||
| 17 | # $string has the form 021019235959Z | ||||||||||
| 18 | 0 | my($year, $month, $day, $hour, $minute, $second, $GMT)= | |||||||||
| 19 | $string=~m/(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(Z)?/; | ||||||||||
| 20 | 0 | $year += 2000; | |||||||||
| 21 | 0 | my $time="$year-$month-$day $hour:$minute:$second"; | |||||||||
| 22 | 0 | ▶ | $time .= " GMT" if $GMT; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $time; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 3 | 1; | |||||||||