1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-04 20:38:50 +01:00
gnupg/g10/options.h

178 lines
5.1 KiB
C
Raw Normal View History

1997-11-18 15:06:00 +01:00
/* options.h
2001-03-08 15:33:24 +01:00
* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
1997-11-18 15:06:00 +01:00
*
* This file is part of GnuPG.
1997-11-18 15:06:00 +01:00
*
* GnuPG is free software; you can redistribute it and/or modify
1997-11-18 15:06:00 +01: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.
*
* GnuPG is distributed in the hope that it will be useful,
1997-11-18 15:06:00 +01: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
*/
#ifndef G10_OPTIONS_H
#define G10_OPTIONS_H
#include <types.h>
1998-10-16 18:00:17 +02:00
#undef ENABLE_COMMENT_PACKETS /* don't create comment packets */
#ifndef EXTERN_UNLESS_MAIN_MODULE
/* Norcraft can't cope with common symbols */
#if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
#define EXTERN_UNLESS_MAIN_MODULE extern
#else
#define EXTERN_UNLESS_MAIN_MODULE
#endif
#endif
1998-10-16 18:00:17 +02:00
EXTERN_UNLESS_MAIN_MODULE
1997-11-18 15:06:00 +01:00
struct {
int verbose;
1998-10-25 20:00:01 +01:00
int quiet;
1997-11-18 15:06:00 +01:00
unsigned debug;
int armor;
int compress;
char *outfile;
int dry_run;
int list_only;
int textmode;
int expert;
int ask_sig_expire;
int ask_cert_expire;
1997-11-18 15:06:00 +01: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 22:44:06 +01:00
int with_colons;
int with_key_data;
2001-09-06 19:10:00 +02:00
int with_fingerprint; /* opt --with-fingerprint active */
1997-12-09 13:46:23 +01:00
int fingerprint; /* list fingerprints */
int list_sigs; /* list signatures */
1997-12-16 20:15:09 +01:00
int no_armor;
2001-03-12 21:21:50 +01:00
int list_packets; /* list-packets mode: 1=normal, 2=invoked by command*/
1998-01-07 21:47:46 +01:00
int def_cipher_algo;
1998-10-18 17:21:22 +02:00
int force_v3_sigs;
int force_v4_certs;
int force_mdc;
int disable_mdc;
1998-01-07 21:47:46 +01:00
int def_digest_algo;
1998-05-15 20:49:19 +02:00
int def_compress_algo;
1998-07-08 11:29:43 +02:00
const char *def_secret_key;
char *def_recipient;
int def_recipient_self;
int def_check_level;
1998-01-24 17:32:27 +01:00
int no_comment;
int no_version;
1998-01-25 19:56:33 +01:00
int marginals_needed;
int completes_needed;
int max_cert_depth;
1998-02-17 21:48:52 +01:00
const char *homedir;
1998-04-30 16:06:01 +02:00
int skip_verify;
1998-05-29 13:53:54 +02:00
int compress_keys;
1998-07-14 19:10:28 +02:00
int compress_sigs;
1998-05-29 13:53:54 +02:00
int always_trust;
int pgp2;
int pgp6;
1998-06-11 09:16:50 +02:00
int rfc1991;
int rfc2440;
int pgp2_workarounds;
unsigned int emulate_bugs; /* bug emulation flags EMUBUG_xxxx */
1998-07-31 18:45:58 +02:00
int shm_coprocess;
1998-08-11 19:29:34 +02:00
const char *set_filename;
const char *comment_string;
1998-09-11 07:47:32 +02:00
int throw_keyid;
int show_photos;
const char *photo_viewer;
1998-09-28 21:25:31 +02:00
int s2k_mode;
int s2k_digest_algo;
int s2k_cipher_algo;
1998-11-20 18:42:18 +01:00
int not_dash_escaped;
int escape_from;
int lock_once;
2001-12-06 22:43:04 +01:00
char *keyserver_scheme;
char *keyserver_host;
char *keyserver_port;
struct
{
int verbose;
int fast_import:1;
int include_revoked:1;
int include_disabled:1;
int use_temp_files:1;
int keep_temp_files:1;
int refresh_add_fake_v3_keyids:1;
2001-12-06 22:43:04 +01:00
STRLIST other;
} keyserver_options;
int exec_disable;
int no_perm_warn;
2001-12-06 22:43:04 +01:00
char *temp_dir;
int no_encrypt_to;
int interactive;
STRLIST notation_data;
int show_notation;
const char *sig_policy_url;
const char *cert_policy_url;
int show_policy_url;
int use_embedded_filename;
int allow_non_selfsigned_uid;
int allow_freeform_uid;
int no_literal;
ulong set_filesize;
int honor_http_proxy;
int fast_list_mode;
2001-03-14 07:56:11 +01:00
int fixed_list_mode;
int ignore_time_conflict;
int ignore_valid_from;
2000-10-19 18:01:37 +02:00
int ignore_crc_error;
int command_fd;
int auto_key_retrieve;
const char *override_session_key;
int show_session_key;
2000-11-16 16:45:03 +01:00
int use_agent;
const char *gpg_agent_info;
int merge_only;
int try_all_secrets;
2001-01-11 14:20:02 +01:00
int no_expensive_trust_checks;
2001-03-27 20:13:44 +02:00
int no_sig_cache;
int no_sig_create_check;
2001-09-24 18:03:14 +02:00
int no_auto_check_trustdb;
int preserve_permissions;
2001-08-07 17:35:13 +02:00
int no_homedir_creation;
int show_keyring;
1997-11-18 15:06:00 +01:00
} opt;
1998-07-29 21:35:05 +02:00
#define EMUBUG_GPGCHKSUM 1
#define EMUBUG_3DESS2K 2
#define EMUBUG_MDENCODE 4
1998-07-29 21:35:05 +02:00
1997-11-18 15:06:00 +01: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 20:04:23 +01:00
#define DBG_TRUST_VALUE 256 /* debug the trustdb */
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
1997-11-18 15:06:00 +01:00
#define DBG_PACKET (opt.debug & DBG_PACKET_VALUE)
#define DBG_FILTER (opt.debug & DBG_FILTER_VALUE)
#define DBG_CACHE (opt.debug & DBG_CACHE_VALUE)
1998-01-13 20:04:23 +01:00
#define DBG_TRUST (opt.debug & DBG_TRUST_VALUE)
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
1997-11-18 15:06:00 +01:00
#endif /*G10_OPTIONS_H*/