| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# GnuPG/Tie/Encrypt.pm - Tied file handle interface to the encryption |
|
3
|
|
|
|
|
|
|
# function of GnuPG. |
|
4
|
|
|
|
|
|
|
# |
|
5
|
|
|
|
|
|
|
# This file is part of GnuPG.pm. |
|
6
|
|
|
|
|
|
|
# |
|
7
|
|
|
|
|
|
|
# Author: Francis J. Lacoste <francis.lacoste@Contre.COM> |
|
8
|
|
|
|
|
|
|
# |
|
9
|
|
|
|
|
|
|
# Copyright (C) 1999, 2000 iNsu Innovations Inc. |
|
10
|
|
|
|
|
|
|
# Copyright (C) 2001 Francis J. Lacoste |
|
11
|
|
|
|
|
|
|
# |
|
12
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
13
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by |
|
14
|
|
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
15
|
|
|
|
|
|
|
# (at your option) any later version. |
|
16
|
|
|
|
|
|
|
# |
|
17
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
18
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20
|
|
|
|
|
|
|
# GNU General Public License for more details. |
|
21
|
|
|
|
|
|
|
# |
|
22
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
23
|
|
|
|
|
|
|
# along with this program; if not, write to the Free Software |
|
24
|
|
|
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
25
|
|
|
|
|
|
|
# |
|
26
|
|
|
|
|
|
|
package GnuPG::Tie::Encrypt; |
|
27
|
|
|
|
|
|
|
|
|
28
|
28
|
|
|
28
|
|
12376
|
use GnuPG; |
|
|
28
|
|
|
|
|
56
|
|
|
|
28
|
|
|
|
|
896
|
|
|
29
|
28
|
|
|
28
|
|
9100
|
use GnuPG::Tie; |
|
|
28
|
|
|
|
|
112
|
|
|
|
28
|
|
|
|
|
784
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
28
|
|
|
28
|
|
196
|
use vars qw( @ISA ); |
|
|
28
|
|
|
|
|
56
|
|
|
|
28
|
|
|
|
|
1400
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
BEGIN { |
|
34
|
28
|
|
|
28
|
|
1288
|
@ISA = qw( GnuPG::Tie ); |
|
35
|
|
|
|
|
|
|
}; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub run_gnupg { |
|
38
|
10
|
|
|
10
|
0
|
20
|
my $self = shift; |
|
39
|
|
|
|
|
|
|
|
|
40
|
10
|
|
|
|
|
112
|
$self->{gnupg}->encrypt( @_ ); |
|
41
|
|
|
|
|
|
|
}; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |