3 # gpg2keys_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 3 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, see <http://www.gnu.org/licenses/>.
21 $Getopt::Std::STANDARD_HELP_VERSION=1;
25 sub VERSION_MESSAGE ()
27 print STDOUT "gpg2keys_test (GnuPG) @VERSION@\n";
34 --help Print this help
35 --version Print the version
42 print STDERR "gpgkeys_test starting\n";
46 print STDERR "Using output file $opt_o\n";
47 open(STDOUT,">$opt_o") || die "Can't open output file $opt_o\n";
52 print STDERR "Using input file $ARGV[0]\n";
53 open(STDIN,$ARGV[0]) || die "Can't open input file $ARGV[0]\n";
56 # Get the command block
58 print STDERR "Command block:\n";
63 print STDERR "--command-> $_";
71 # Get the keylist block
73 print STDERR "Keylist block:\n";
78 print STDERR "--keylist-> $_";
81 # If it's a SEND, then get the key material
83 if($command eq "SEND")
85 print STDERR "Key material to send:\n";
93 printf STDERR "gpgkeys_test finished\n";