line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PGP::Finger; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
795300
|
use Moose; |
|
1
|
|
|
|
|
566763
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: retrieve PGP keys from different sources |
6
|
|
|
|
|
|
|
our $VERSION = '1.1'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5318
|
use PGP::Finger::DNS; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
9
|
1
|
|
|
1
|
|
314
|
use PGP::Finger::Keyserver; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
10
|
1
|
|
|
1
|
|
336
|
use PGP::Finger::ResultSet; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
146
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has 'sources' => ( is => 'ro', isa => 'ArrayRef[PGP::Finger::Source]', lazy => 1, |
13
|
|
|
|
|
|
|
default => sub { [ |
14
|
|
|
|
|
|
|
PGP::Finger::DNS->new, |
15
|
|
|
|
|
|
|
PGP::Finger::Keyserver->new, |
16
|
|
|
|
|
|
|
] }, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub fetch { |
20
|
0
|
|
|
0
|
0
|
|
my ( $self, $addr ) = @_; |
21
|
0
|
|
|
|
|
|
my $resultset = PGP::Finger::ResultSet->new; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
foreach my $source ( @{$self->sources} ) { |
|
0
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my $result = $source->fetch( $addr ); |
25
|
0
|
0
|
|
|
|
|
if( ! defined $result ) { next; } |
|
0
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
$resultset->add_result( $result ); |
27
|
|
|
|
|
|
|
} |
28
|
0
|
|
|
|
|
|
return $resultset; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding UTF-8 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
PGP::Finger - retrieve PGP keys from different sources |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 1.1 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Markus Benning <ich@markusbenning.de> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Markus Benning. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is free software, licensed under: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The GNU General Public License, Version 2 or later |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |