File Coverage

blib/lib/Authen/SASL/Perl/EXTERNAL.pm
Criterion Covered Total %
statement 17 17 100.0
branch 2 2 100.0
condition n/a
subroutine 7 7 100.0
pod 0 2 0.0
total 26 28 92.8


line stmt bran cond sub pod time code
1             # Copyright (c) 1998-2002 Graham Barr and 2001 Chris Ridd
2             # . All rights reserved. This program
3             # is free software; you can redistribute it and/or modify it under the
4             # same terms as Perl itself.
5              
6             package Authen::SASL::Perl::EXTERNAL 2.2000;
7              
8 2     2   14 use strict;
  2         4  
  2         85  
9 2     2   10 use warnings;
  2         3  
  2         127  
10 2     2   11 use vars qw(@ISA);
  2         3  
  2         420  
11              
12             @ISA = qw(Authen::SASL::Perl);
13              
14             my %secflags = (
15             noplaintext => 1,
16             nodictionary => 1,
17             noanonymous => 1,
18             );
19              
20 37     37   100 sub _order { 2 }
21             sub _secflags {
22 13     13   18 shift;
23 13         43 grep { $secflags{$_} } @_;
  2         8  
24             }
25              
26 5     5 0 3108 sub mechanism { 'EXTERNAL' }
27              
28             sub client_start {
29 2     2 0 4 my $self = shift;
30 2         7 my $v = $self->_call('user');
31 2 100       9 defined($v) ? $v : ''
32             }
33              
34             #sub client_step {
35             # shift->_call('user');
36             #}
37              
38             1;
39              
40             __END__