Protocol-DBus
view release on metacpan or search on metacpan
lib/Protocol/DBus/Authn/Mechanism/DBUS_COOKIE_SHA1.pm view on Meta::CPAN
[ 1 => sub {
_consume_data($self, @_);
} ],
[ 0 => \&_authn_respond_data ],
);
}
sub _getpw {
my ($self) = @_;
$self->{'_pw'} ||= [ getpwuid $> ];
return @{ $self->{'_pw'} };
}
sub _consume_data {
my ($self, $authn, $line) = @_;
if (0 != index($line, 'DATA ')) {
die "Invalid line: [$line]";
}
( run in 0.351 second using v1.01-cache-2.11-cpan-8d75d55dd25 )