2 * Copyright (C) 1998 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24 #undef ENABLE_COMMENT_PACKETS /* don't create comment packets */
35 int batch; /* run in batch mode */
36 int answer_yes; /* answer yes on most questions */
37 int answer_no; /* answer no on most questions */
38 int check_sigs; /* check key signatures */
40 int fingerprint; /* list fingerprints */
41 int list_sigs; /* list signatures */
43 int list_packets; /* list-packets mode */
47 int def_compress_algo;
48 const char *def_secret_key;
59 unsigned emulate_bugs; /* bug emulation flags EMUBUG_xxxx */
61 const char *set_filename;
62 const char *comment_string;
70 const char *keyserver_name;
74 #define EMUBUG_GPGCHKSUM 1
76 #define DBG_PACKET_VALUE 1 /* debug packet reading/writing */
77 #define DBG_MPI_VALUE 2 /* debug mpi details */
78 #define DBG_CIPHER_VALUE 4 /* debug cipher handling */
79 /* (may reveal sensitive data) */
80 #define DBG_FILTER_VALUE 8 /* debug internal filter handling */
81 #define DBG_IOBUF_VALUE 16 /* debug iobuf stuff */
82 #define DBG_MEMORY_VALUE 32 /* debug memory allocation stuff */
83 #define DBG_CACHE_VALUE 64 /* debug the cacheing */
84 #define DBG_MEMSTAT_VALUE 128 /* show memory statistics */
85 #define DBG_TRUST_VALUE 256 /* debug the trustdb */
88 #define DBG_PACKET (opt.debug & DBG_PACKET_VALUE)
89 #define DBG_FILTER (opt.debug & DBG_FILTER_VALUE)
90 #define DBG_CACHE (opt.debug & DBG_CACHE_VALUE)
91 #define DBG_TRUST (opt.debug & DBG_TRUST_VALUE)
94 #endif /*G10_OPTIONS_H*/