line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::SSLeay::OO::Session; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
2011
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'session' => isa => 'Int', |
7
|
|
|
|
|
|
|
is => "ro", |
8
|
|
|
|
|
|
|
required => 1, |
9
|
|
|
|
|
|
|
; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use Net::SSLeay::OO::Functions 'session'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub DESTROY { |
14
|
|
|
|
|
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
$self->free; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Net::SSLeay::OO::Session - representation of SSL_SESSION* objects |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $session = $ssl->get_session; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
say "Your SSL session has been active for ". |
31
|
|
|
|
|
|
|
(time - $session->get_time)."s"; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This is a wrapper for SSL_SESSION methods. defined methods are: |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=over |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item B<get_time()> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item B<set_time($epoch)> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Get/set the time that this SSL session was established. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item B<get_timeout()> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item B<set_timeout($epoch)> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Set the timeout value for the session. See |
50
|
|
|
|
|
|
|
L<SSL_SESSION_set_timeout(3ssl)>. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Sam Vilain, L<samv@cpan.org> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 COPYRIGHT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Copyright (C) 2009 NZ Registry Services |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
63
|
|
|
|
|
|
|
it under the terms of the Artistic License 2.0 or later. You should |
64
|
|
|
|
|
|
|
have received a copy of the Artistic License the file COPYING.txt. If |
65
|
|
|
|
|
|
|
not, see <http://www.perlfoundation.org/artistic_license_2_0> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 SEE ALSO |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
L<Net::SSLeay::OO>, L<Net::SSLeay::OO::SSL> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
# Local Variables: |
74
|
|
|
|
|
|
|
# mode:cperl |
75
|
|
|
|
|
|
|
# indent-tabs-mode: t |
76
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 8 |
77
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
78
|
|
|
|
|
|
|
# cperl-close-paren-offset: 0 |
79
|
|
|
|
|
|
|
# cperl-continued-brace-offset: 0 |
80
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 8 |
81
|
|
|
|
|
|
|
# cperl-extra-newline-before-brace: nil |
82
|
|
|
|
|
|
|
# cperl-indent-level: 8 |
83
|
|
|
|
|
|
|
# cperl-indent-parens-as-block: t |
84
|
|
|
|
|
|
|
# cperl-indent-wrt-brace: nil |
85
|
|
|
|
|
|
|
# cperl-label-offset: -8 |
86
|
|
|
|
|
|
|
# cperl-merge-trailing-else: t |
87
|
|
|
|
|
|
|
# End: |
88
|
|
|
|
|
|
|
# vim: filetype=perl:noexpandtab:ts=3:sw=3 |
89
|
|
|
|
|
|
|
|