line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenID::Lite::SessionHandlers; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use OpenID::Lite::Constants::SessionType qw(:all); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
159
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
554
|
use OpenID::Lite::SessionHandler::NoEncryption; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
9
|
1
|
|
|
1
|
|
587
|
use OpenID::Lite::SessionHandler::DH::SHA1; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use OpenID::Lite::SessionHandler::DH::SHA256; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# dispatch table |
13
|
|
|
|
|
|
|
my %handlers = ( |
14
|
|
|
|
|
|
|
NO_ENCRYPTION() => OpenID::Lite::SessionHandler::NoEncryption->new, |
15
|
|
|
|
|
|
|
DH_SHA1() => OpenID::Lite::SessionHandler::DH::SHA1->new, |
16
|
|
|
|
|
|
|
DH_SHA256() => OpenID::Lite::SessionHandler::DH::SHA256->new, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub select_session { |
20
|
|
|
|
|
|
|
my ( $class, $type ) = @_; |
21
|
|
|
|
|
|
|
return $handlers{$type}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|