1997-11-18 14:06:00 +00:00
|
|
|
/* options.h
|
2000-07-14 17:34:53 +00:00
|
|
|
* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
1997-11-18 14:06:00 +00:00
|
|
|
*
|
1998-12-23 12:41:40 +00:00
|
|
|
* This file is part of GnuPG.
|
1997-11-18 14:06:00 +00:00
|
|
|
*
|
1998-12-23 12:41:40 +00:00
|
|
|
* GnuPG is free software; you can redistribute it and/or modify
|
1997-11-18 14:06:00 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
1998-12-23 12:41:40 +00:00
|
|
|
* GnuPG is distributed in the hope that it will be useful,
|
1997-11-18 14:06:00 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*/
|
2000-01-27 16:50:45 +00:00
|
|
|
#ifndef GPG_OPTIONS_H
|
|
|
|
#define GPG_OPTIONS_H
|
1997-11-18 14:06:00 +00:00
|
|
|
|
1999-05-25 17:56:15 +00:00
|
|
|
#include <types.h>
|
1998-10-16 16:00:17 +00:00
|
|
|
|
|
|
|
#undef ENABLE_COMMENT_PACKETS /* don't create comment packets */
|
|
|
|
|
|
|
|
|
1997-11-18 14:06:00 +00:00
|
|
|
struct {
|
|
|
|
int verbose;
|
1998-10-25 19:00:01 +00:00
|
|
|
int quiet;
|
2000-07-14 17:34:53 +00:00
|
|
|
unsigned int debug;
|
1997-11-18 14:06:00 +00:00
|
|
|
int armor;
|
|
|
|
int compress;
|
|
|
|
char *outfile;
|
1999-02-25 17:51:55 +00:00
|
|
|
int dry_run;
|
2000-07-14 17:34:53 +00:00
|
|
|
int list_only;
|
1997-12-23 17:30:18 +00:00
|
|
|
int textmode;
|
1997-11-18 14:06:00 +00:00
|
|
|
int batch; /* run in batch mode */
|
|
|
|
int answer_yes; /* answer yes on most questions */
|
|
|
|
int answer_no; /* answer no on most questions */
|
|
|
|
int check_sigs; /* check key signatures */
|
1998-03-09 21:44:06 +00:00
|
|
|
int with_colons;
|
1999-06-08 11:41:46 +00:00
|
|
|
int with_key_data;
|
1997-12-09 12:46:23 +00:00
|
|
|
int fingerprint; /* list fingerprints */
|
|
|
|
int list_sigs; /* list signatures */
|
1997-12-16 19:15:09 +00:00
|
|
|
int no_armor;
|
1998-01-02 20:40:10 +00:00
|
|
|
int list_packets; /* list-packets mode */
|
1998-01-07 20:47:46 +00:00
|
|
|
int def_cipher_algo;
|
1998-10-18 15:21:22 +00:00
|
|
|
int force_v3_sigs;
|
1999-04-26 15:53:01 +00:00
|
|
|
int force_mdc;
|
1998-01-07 20:47:46 +00:00
|
|
|
int def_digest_algo;
|
1998-05-15 18:49:19 +00:00
|
|
|
int def_compress_algo;
|
1998-07-08 09:29:43 +00:00
|
|
|
const char *def_secret_key;
|
1999-07-13 15:41:14 +00:00
|
|
|
char *def_recipient;
|
|
|
|
int def_recipient_self;
|
1998-01-24 16:32:27 +00:00
|
|
|
int no_comment;
|
1999-02-10 16:22:40 +00:00
|
|
|
int no_version;
|
1998-01-25 18:56:33 +00:00
|
|
|
int marginals_needed;
|
|
|
|
int completes_needed;
|
1998-11-13 19:41:41 +00:00
|
|
|
int max_cert_depth;
|
1998-02-17 20:48:52 +00:00
|
|
|
const char *homedir;
|
1998-04-30 14:06:01 +00:00
|
|
|
int skip_verify;
|
1998-05-29 11:53:54 +00:00
|
|
|
int compress_keys;
|
1998-07-14 17:10:28 +00:00
|
|
|
int compress_sigs;
|
1998-05-29 11:53:54 +00:00
|
|
|
int always_trust;
|
1998-06-11 07:16:50 +00:00
|
|
|
int rfc1991;
|
2000-07-14 17:34:53 +00:00
|
|
|
int rfc2440;
|
|
|
|
int pgp2_workarounds;
|
|
|
|
unsigned int emulate_bugs; /* bug emulation flags EMUBUG_xxxx */
|
1998-07-31 16:45:58 +00:00
|
|
|
int shm_coprocess;
|
1998-08-11 17:29:34 +00:00
|
|
|
const char *set_filename;
|
|
|
|
const char *comment_string;
|
1998-09-11 05:47:32 +00:00
|
|
|
int throw_keyid;
|
1998-09-28 19:25:31 +00:00
|
|
|
int s2k_mode;
|
|
|
|
int s2k_digest_algo;
|
|
|
|
int s2k_cipher_algo;
|
1998-11-20 17:42:18 +00:00
|
|
|
int not_dash_escaped;
|
1998-12-17 17:36:05 +00:00
|
|
|
int escape_from;
|
1998-11-27 20:40:56 +00:00
|
|
|
int lock_once;
|
1999-01-16 08:29:29 +00:00
|
|
|
const char *keyserver_name;
|
1999-02-19 14:54:00 +00:00
|
|
|
int no_encrypt_to;
|
1999-05-19 14:12:26 +00:00
|
|
|
int interactive;
|
1999-05-25 17:56:15 +00:00
|
|
|
STRLIST notation_data;
|
1999-05-26 12:41:46 +00:00
|
|
|
const char *set_policy_url;
|
1999-06-01 14:08:57 +00:00
|
|
|
int use_embedded_filename;
|
1999-07-22 18:11:55 +00:00
|
|
|
int allow_non_selfsigned_uid;
|
1999-07-26 07:44:46 +00:00
|
|
|
int no_literal;
|
|
|
|
ulong set_filesize;
|
2000-07-14 17:34:53 +00:00
|
|
|
int honor_http_proxy;
|
|
|
|
int fast_list_mode;
|
|
|
|
int ignore_time_conflict;
|
|
|
|
int command_fd;
|
|
|
|
int auto_key_retrieve;
|
1997-11-18 14:06:00 +00:00
|
|
|
} opt;
|
|
|
|
|
|
|
|
|
2000-07-14 17:34:53 +00:00
|
|
|
#define EMUBUG_3DESS2K 2
|
|
|
|
#define EMUBUG_MDENCODE 4
|
|
|
|
|
1997-11-18 14:06:00 +00:00
|
|
|
#define DBG_PACKET_VALUE 1 /* debug packet reading/writing */
|
|
|
|
#define DBG_MPI_VALUE 2 /* debug mpi details */
|
|
|
|
#define DBG_CIPHER_VALUE 4 /* debug cipher handling */
|
|
|
|
/* (may reveal sensitive data) */
|
|
|
|
#define DBG_FILTER_VALUE 8 /* debug internal filter handling */
|
|
|
|
#define DBG_IOBUF_VALUE 16 /* debug iobuf stuff */
|
|
|
|
#define DBG_MEMORY_VALUE 32 /* debug memory allocation stuff */
|
|
|
|
#define DBG_CACHE_VALUE 64 /* debug the cacheing */
|
|
|
|
#define DBG_MEMSTAT_VALUE 128 /* show memory statistics */
|
1998-01-13 19:04:23 +00:00
|
|
|
#define DBG_TRUST_VALUE 256 /* debug the trustdb */
|
2000-07-14 17:34:53 +00:00
|
|
|
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
|
1997-11-18 14:06:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define DBG_PACKET (opt.debug & DBG_PACKET_VALUE)
|
|
|
|
#define DBG_FILTER (opt.debug & DBG_FILTER_VALUE)
|
2000-01-24 11:55:49 +00:00
|
|
|
#define DBG_MEMORY (opt.debug & DBG_MEMORY_VALUE)
|
1997-11-18 14:06:00 +00:00
|
|
|
#define DBG_CACHE (opt.debug & DBG_CACHE_VALUE)
|
1998-01-13 19:04:23 +00:00
|
|
|
#define DBG_TRUST (opt.debug & DBG_TRUST_VALUE)
|
1999-12-31 11:44:29 +00:00
|
|
|
#define DBG_CIPHER (opt.debug & DBG_CIPHER_VALUE)
|
2000-07-14 17:34:53 +00:00
|
|
|
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2000-01-27 16:50:45 +00:00
|
|
|
#endif /*GPG_OPTIONS_H*/
|