line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
package Net::SSH::AuthorizedKey; |
3
|
|
|
|
|
|
|
########################################### |
4
|
11
|
|
|
11
|
|
1736
|
use strict; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
528
|
|
5
|
11
|
|
|
11
|
|
52
|
use warnings; |
|
11
|
|
|
|
|
16
|
|
|
11
|
|
|
|
|
335
|
|
6
|
11
|
|
|
11
|
|
3607
|
use Log::Log4perl qw(:easy); |
|
11
|
|
|
|
|
187179
|
|
|
11
|
|
|
|
|
71
|
|
7
|
|
|
|
|
|
|
|
8
|
11
|
|
|
11
|
|
10587
|
use Net::SSH::AuthorizedKey::SSH1; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
321
|
|
9
|
11
|
|
|
11
|
|
5449
|
use Net::SSH::AuthorizedKey::SSH2; |
|
11
|
|
|
|
|
23
|
|
|
11
|
|
|
|
|
1425
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
########################################### |
12
|
|
|
|
|
|
|
sub parse { |
13
|
|
|
|
|
|
|
########################################### |
14
|
67
|
|
|
67
|
1
|
3408
|
my($class, $string) = @_; |
15
|
|
|
|
|
|
|
|
16
|
67
|
|
|
|
|
128
|
my @subclasses = qw( |
17
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH1 |
18
|
|
|
|
|
|
|
Net::SSH::AuthorizedKey::SSH2 |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
67
|
|
|
|
|
99
|
for my $subclass ( @subclasses ) { |
22
|
120
|
|
|
|
|
327
|
DEBUG "Parsing with $subclass: $string"; |
23
|
120
|
|
|
|
|
876
|
my $pk = $subclass->parse( $string ); |
24
|
120
|
100
|
|
|
|
248
|
if($pk) { |
25
|
46
|
|
|
|
|
190
|
DEBUG "Successfully parsed $subclass key"; |
26
|
46
|
|
|
|
|
295
|
return $pk; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
21
|
|
|
|
|
42
|
return undef; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |