line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::Database::PostgreSQL::Backend::BackendKeyData; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '2.000'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use parent qw(Protocol::Database::PostgreSQL::Backend); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Protocol::Database::PostgreSQL::Backend::BackendKeyData - an authentication request message |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
sub type { 'backend_key_data' } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
sub pid { shift->{pid} } |
21
|
0
|
|
|
0
|
0
|
|
sub key { shift->{key} } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new_from_message { |
24
|
0
|
|
|
0
|
1
|
|
my ($class, $msg) = @_; |
25
|
0
|
|
|
|
|
|
(undef, my $size, my $pid, my $key) = unpack('C1N1N1N1', $msg); |
26
|
0
|
|
|
|
|
|
return $class->new( |
27
|
|
|
|
|
|
|
pid => $pid, |
28
|
|
|
|
|
|
|
key => $key |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 AUTHOR |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Tom Molesworth |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 LICENSE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself. |
41
|
|
|
|
|
|
|
|