From 75da8751b1e5a5a39f8743b44971224b0ab34c31 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 24 Apr 2004 12:25:10 +0000 Subject: Move duplicated IO::Handle preperations for GnuPG::Interface to Echolot::Tools::make_gpg_fds. --- Echolot/Conf.pm | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'Echolot/Conf.pm') diff --git a/Echolot/Conf.pm b/Echolot/Conf.pm index 53340eb..19ea43f 100644 --- a/Echolot/Conf.pm +++ b/Echolot/Conf.pm @@ -25,7 +25,6 @@ account (This is the one with the latest self signature I think). use strict; use Echolot::Log; use GnuPG::Interface; -use IO::Handle; sub is_not_a_remailer($) { @@ -361,19 +360,7 @@ sub parse_cpunk_key($$$) { (?:[a-zA-Z0-9+\/=]*\r?\n)+ -----END \s PGP \s PUBLIC \s KEY \s BLOCK-----$/xmg ); for my $key (@pgp_keys) { - my ( $stdin_fh, $stdout_fh, $stderr_fh, $status_fh ) - = ( IO::Handle->new(), - IO::Handle->new(), - IO::Handle->new(), - IO::Handle->new(), - ); - my $handles = GnuPG::Handles->new ( - stdin => $stdin_fh, - stdout => $stdout_fh, - stderr => $stderr_fh, - status => $status_fh - ); - + my ( $stdin_fh, $stdout_fh, $stderr_fh, $status_fh, $handles ) = Echolot::Tools::make_gpg_fds(); my $pid = $GnuPG->wrap_call( commands => [qw{--with-colons}], command_args => [qw{--no-options --no-secmem-warning --no-default-keyring --fast-list-mode}], -- cgit v1.2.3