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;
7             $Authen::SASL::Perl::EXTERNAL::VERSION = '2.1700'; # TRIAL
8 2     2   15 use strict;
  2         3  
  2         63  
9 2     2   10 use warnings;
  2         4  
  2         55  
10 2     2   10 use vars qw($VERSION @ISA);
  2         5  
  2         403  
11              
12             $VERSION = "2.14";
13             @ISA = qw(Authen::SASL::Perl);
14              
15             my %secflags = (
16             noplaintext => 1,
17             nodictionary => 1,
18             noanonymous => 1,
19             );
20              
21 37     37   68 sub _order { 2 }
22             sub _secflags {
23 13     13   22 shift;
24 13         46 grep { $secflags{$_} } @_;
  2         17  
25             }
26              
27 5     5 0 1154 sub mechanism { 'EXTERNAL' }
28              
29             sub client_start {
30 2     2 0 6 my $self = shift;
31 2         9 my $v = $self->_call('user');
32 2 100       9 defined($v) ? $v : ''
33             }
34              
35             #sub client_step {
36             # shift->_call('user');
37             #}
38              
39             1;
40              
41             __END__