3 # gpgkeys_test - keyserver code tester
4 # Copyright (C) 2001 Free Software Foundation, Inc.
6 # This file is part of GnuPG.
8 # GnuPG is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # GnuPG is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 $Getopt::Std::STANDARD_HELP_VERSION=1;
27 sub VERSION_MESSAGE ()
29 print STDOUT "gpgkeys_test (GnuPG) @VERSION@\n";
36 --help Print this help
37 --version Print the version
44 print STDERR "gpgkeys_test starting\n";
48 print STDERR "Using output file $opt_o\n";
49 open(STDOUT,">$opt_o") || die "Can't open output file $opt_o\n";
54 print STDERR "Using input file $ARGV[0]\n";
55 open(STDIN,$ARGV[0]) || die "Can't open input file $ARGV[0]\n";
58 # Get the command block
60 print STDERR "Command block:\n";
65 print STDERR "--command-> $_";
73 # Get the keylist block
75 print STDERR "Keylist block:\n";
80 print STDERR "--keylist-> $_";
83 # If it's a SEND, then get the key material
85 if($command eq "SEND")
87 print STDERR "Key material to send:\n";
95 printf STDERR "gpgkeys_test finished\n";