line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
package Net::SSH::AuthorizedKey; |
3
|
|
|
|
|
|
|
########################################### |
4
|
11
|
|
|
11
|
|
2213
|
use strict; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
626
|
|
5
|
11
|
|
|
11
|
|
54
|
use warnings; |
|
11
|
|
|
|
|
23
|
|
|
11
|
|
|
|
|
311
|
|
6
|
11
|
|
|
11
|
|
11142
|
use Log::Log4perl qw(:easy); |
|
11
|
|
|
|
|
248143
|
|
|
11
|
|
|
|
|
71
|
|
7
|
|
|
|
|
|
|
|
8
|
11
|
|
|
11
|
|
13851
|
use Net::SSH::AuthorizedKey::SSH1; |
|
11
|
|
|
|
|
30
|
|
|
11
|
|
|
|
|
406
|
|
9
|
11
|
|
|
11
|
|
7419
|
use Net::SSH::AuthorizedKey::SSH2; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
2608
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
########################################### |
12
|
|
|
|
|
|
|
sub parse { |
13
|
|
|
|
|
|
|
########################################### |
14
|
66
|
|
|
66
|
1
|
4356
|
my($class, $string) = @_; |
15
|
|
|
|
|
|
|
|
16
|
66
|
|
|
|
|
149
|
my @subclasses = qw( |
17
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH1 |
18
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH2 |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
66
|
|
|
|
|
113
|
for my $subclass ( @subclasses ) { |
22
|
118
|
|
|
|
|
402
|
DEBUG "Parsing with $subclass: $string"; |
23
|
118
|
|
|
|
|
1400
|
my $pk = $subclass->parse( $string ); |
24
|
118
|
100
|
|
|
|
307
|
if($pk) { |
25
|
45
|
|
|
|
|
146
|
DEBUG "Successfully parsed $subclass key"; |
26
|
45
|
|
|
|
|
353
|
return $pk; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
21
|
|
|
|
|
83
|
return undef; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |