line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
package Net::SSH::AuthorizedKey; |
3
|
|
|
|
|
|
|
########################################### |
4
|
12
|
|
|
12
|
|
1791
|
use strict; |
|
12
|
|
|
|
|
14
|
|
|
12
|
|
|
|
|
309
|
|
5
|
12
|
|
|
12
|
|
87
|
use warnings; |
|
12
|
|
|
|
|
16
|
|
|
12
|
|
|
|
|
326
|
|
6
|
12
|
|
|
12
|
|
3271
|
use Log::Log4perl qw(:easy); |
|
12
|
|
|
|
|
203442
|
|
|
12
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
12
|
|
|
12
|
|
10656
|
use Net::SSH::AuthorizedKey::SSH1; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
316
|
|
9
|
12
|
|
|
12
|
|
5567
|
use Net::SSH::AuthorizedKey::SSH2; |
|
12
|
|
|
|
|
23
|
|
|
12
|
|
|
|
|
1478
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
########################################### |
12
|
|
|
|
|
|
|
sub parse { |
13
|
|
|
|
|
|
|
########################################### |
14
|
69
|
|
|
69
|
1
|
3173
|
my($class, $string) = @_; |
15
|
|
|
|
|
|
|
|
16
|
69
|
|
|
|
|
111
|
my @subclasses = qw( |
17
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH1 |
18
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH2 |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
69
|
|
|
|
|
81
|
for my $subclass ( @subclasses ) { |
22
|
122
|
|
|
|
|
277
|
DEBUG "Parsing with $subclass: $string"; |
23
|
122
|
|
|
|
|
747
|
my $pk = $subclass->parse( $string ); |
24
|
122
|
100
|
|
|
|
209
|
if($pk) { |
25
|
48
|
|
|
|
|
112
|
DEBUG "Successfully parsed $subclass key"; |
26
|
48
|
|
|
|
|
238
|
return $pk; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
21
|
|
|
|
|
34
|
return undef; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |