1997-11-18 14:06:00 +00:00
|
|
|
/* options.h
|
2007-10-17 16:37:09 +00:00
|
|
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
|
|
|
* 2007 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
|
2007-10-23 10:48:09 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1997-11-18 14:06:00 +00:00
|
|
|
* (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
|
2007-10-23 10:48:09 +00:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
1997-11-18 14:06:00 +00:00
|
|
|
*/
|
2002-06-29 13:46:34 +00:00
|
|
|
#ifndef G10_OPTIONS_H
|
|
|
|
#define G10_OPTIONS_H
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2004-02-18 23:09:27 +00:00
|
|
|
#include <sys/types.h>
|
1999-05-25 17:56:15 +00:00
|
|
|
#include <types.h>
|
2002-06-29 13:46:34 +00:00
|
|
|
#include "main.h"
|
|
|
|
#include "packet.h"
|
1998-10-16 16:00:17 +00:00
|
|
|
|
2002-06-29 13:46:34 +00:00
|
|
|
#ifndef EXTERN_UNLESS_MAIN_MODULE
|
|
|
|
/* Norcraft can't cope with common symbols */
|
* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c,
options.h, sig-check.c, tdbio.h, encode.c, mainproc.c, parse-packet.c,
signal.c, textfilter.c: Edit all preprocessor instructions to remove
whitespace before the '#'. This is not required by C89, but there are some
compilers out there that don't like it.
2003-05-24 21:50:33 +00:00
|
|
|
#if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
|
|
|
|
#define EXTERN_UNLESS_MAIN_MODULE extern
|
|
|
|
#else
|
|
|
|
#define EXTERN_UNLESS_MAIN_MODULE
|
|
|
|
#endif
|
2002-06-29 13:46:34 +00:00
|
|
|
#endif
|
1998-10-16 16:00:17 +00:00
|
|
|
|
2002-06-29 13:46:34 +00:00
|
|
|
EXTERN_UNLESS_MAIN_MODULE
|
2004-02-24 23:37:18 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int verbose;
|
|
|
|
int quiet;
|
|
|
|
unsigned debug;
|
|
|
|
int armor;
|
|
|
|
char *outfile;
|
|
|
|
off_t max_output;
|
|
|
|
int dry_run;
|
|
|
|
int list_only;
|
|
|
|
int textmode;
|
|
|
|
int expert;
|
2005-05-05 19:21:40 +00:00
|
|
|
const char *def_sig_expire;
|
2004-02-24 23:37:18 +00:00
|
|
|
int ask_sig_expire;
|
2005-05-05 19:21:40 +00:00
|
|
|
const char *def_cert_expire;
|
2004-02-24 23:37:18 +00:00
|
|
|
int ask_cert_expire;
|
|
|
|
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 */
|
|
|
|
int with_colons;
|
|
|
|
int with_key_data;
|
|
|
|
int with_fingerprint; /* opt --with-fingerprint active */
|
|
|
|
int fingerprint; /* list fingerprints */
|
|
|
|
int list_sigs; /* list signatures */
|
|
|
|
int no_armor;
|
|
|
|
int list_packets; /* list-packets mode: 1=normal, 2=invoked by command*/
|
|
|
|
int def_cipher_algo;
|
|
|
|
int force_v3_sigs;
|
|
|
|
int force_v4_certs;
|
|
|
|
int force_mdc;
|
|
|
|
int disable_mdc;
|
|
|
|
int def_digest_algo;
|
|
|
|
int cert_digest_algo;
|
|
|
|
int compress_algo;
|
|
|
|
int compress_level;
|
|
|
|
int bz2_compress_level;
|
2004-03-25 22:43:51 +00:00
|
|
|
int bz2_decompress_lowmem;
|
2004-02-24 23:37:18 +00:00
|
|
|
const char *def_secret_key;
|
|
|
|
char *def_recipient;
|
|
|
|
int def_recipient_self;
|
|
|
|
int def_cert_level;
|
|
|
|
int min_cert_level;
|
|
|
|
int ask_cert_level;
|
|
|
|
int no_version;
|
|
|
|
int marginals_needed;
|
|
|
|
int completes_needed;
|
|
|
|
int max_cert_depth;
|
|
|
|
const char *homedir;
|
2002-06-29 13:46:34 +00:00
|
|
|
|
2004-02-24 23:37:18 +00:00
|
|
|
char *display; /* 5 options to be passed to the gpg-agent */
|
|
|
|
char *ttyname;
|
|
|
|
char *ttytype;
|
|
|
|
char *lc_ctype;
|
|
|
|
char *lc_messages;
|
2002-06-29 13:46:34 +00:00
|
|
|
|
2004-02-24 23:37:18 +00:00
|
|
|
int skip_verify;
|
|
|
|
int compress_keys;
|
|
|
|
int compress_sigs;
|
|
|
|
/* TM_CLASSIC must be zero to accomodate trustdbs generated before
|
|
|
|
we started storing the trust model inside the trustdb. */
|
|
|
|
enum
|
|
|
|
{
|
2004-10-13 15:34:52 +00:00
|
|
|
TM_CLASSIC=0, TM_PGP=1, TM_EXTERNAL=2, TM_ALWAYS, TM_DIRECT, TM_AUTO
|
2004-02-24 23:37:18 +00:00
|
|
|
} trust_model;
|
|
|
|
int force_ownertrust;
|
|
|
|
enum
|
2002-06-29 13:46:34 +00:00
|
|
|
{
|
2007-10-17 16:37:09 +00:00
|
|
|
CO_GNUPG, CO_RFC4880, CO_RFC2440, CO_RFC1991, CO_PGP2,
|
|
|
|
CO_PGP6, CO_PGP7, CO_PGP8
|
2004-02-24 23:37:18 +00:00
|
|
|
} compliance;
|
2004-03-03 05:47:51 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
KF_SHORT, KF_LONG, KF_0xSHORT, KF_0xLONG
|
|
|
|
} keyid_format;
|
2004-02-24 23:37:18 +00:00
|
|
|
int pgp2_workarounds;
|
|
|
|
int shm_coprocess;
|
|
|
|
const char *set_filename;
|
|
|
|
STRLIST comments;
|
|
|
|
int throw_keyid;
|
|
|
|
const char *photo_viewer;
|
|
|
|
int s2k_mode;
|
|
|
|
int s2k_digest_algo;
|
|
|
|
int s2k_cipher_algo;
|
2006-10-13 03:44:34 +00:00
|
|
|
unsigned char s2k_count; /* This is the encoded form, not the raw
|
|
|
|
count */
|
|
|
|
int simple_sk_checksum; /* create the deprecated rfc2440 secret key
|
|
|
|
protection */
|
2004-02-24 23:37:18 +00:00
|
|
|
int not_dash_escaped;
|
|
|
|
int escape_from;
|
|
|
|
int lock_once;
|
2004-04-14 17:56:23 +00:00
|
|
|
struct keyserver_spec
|
|
|
|
{
|
|
|
|
char *uri;
|
|
|
|
char *scheme;
|
2004-12-22 18:09:41 +00:00
|
|
|
char *auth;
|
2004-04-14 17:56:23 +00:00
|
|
|
char *host;
|
|
|
|
char *port;
|
2004-05-11 19:36:44 +00:00
|
|
|
char *path;
|
2004-04-14 17:56:23 +00:00
|
|
|
char *opaque;
|
2006-02-23 17:00:02 +00:00
|
|
|
STRLIST options;
|
2005-12-08 05:52:41 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned int direct_uri:1;
|
|
|
|
} flags;
|
2006-02-24 14:27:22 +00:00
|
|
|
struct keyserver_spec *next;
|
2004-04-14 21:33:45 +00:00
|
|
|
} *keyserver;
|
2004-02-24 23:37:18 +00:00
|
|
|
struct
|
|
|
|
{
|
2004-04-15 18:16:17 +00:00
|
|
|
unsigned int options;
|
2002-07-22 22:26:14 +00:00
|
|
|
unsigned int import_options;
|
* options.h, main.h, export.c (parse_export_options, do_export_stream),
g10.c (main): add new --export-options option. Current flags are
"include-non-rfc", "include-local-sigs", "include-attributes", and
"include-sensitive-revkeys".
* options.h, hkp.c (hkp_export), keyserver.c (parse_keyserver_options,
keyserver_spawn): try passing unknown keyserver options to export options,
and if successful, use them when doing a keyserver --send-key.
* build-packet.c (build_sig_subpkt): We do not generate
SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
2002-07-22 19:07:21 +00:00
|
|
|
unsigned int export_options;
|
2004-02-24 23:37:18 +00:00
|
|
|
STRLIST other;
|
|
|
|
} keyserver_options;
|
|
|
|
int exec_disable;
|
|
|
|
int exec_path_set;
|
|
|
|
unsigned int import_options;
|
|
|
|
unsigned int export_options;
|
|
|
|
unsigned int list_options;
|
|
|
|
unsigned int verify_options;
|
2006-06-22 22:56:54 +00:00
|
|
|
const char *def_preference_list;
|
|
|
|
const char *def_keyserver_url;
|
2004-02-24 23:37:18 +00:00
|
|
|
prefitem_t *personal_cipher_prefs;
|
|
|
|
prefitem_t *personal_digest_prefs;
|
|
|
|
prefitem_t *personal_compress_prefs;
|
|
|
|
int no_perm_warn;
|
|
|
|
int no_mdc_warn;
|
|
|
|
char *temp_dir;
|
|
|
|
int no_encrypt_to;
|
|
|
|
int interactive;
|
2006-03-08 23:30:12 +00:00
|
|
|
struct notation *sig_notations;
|
|
|
|
struct notation *cert_notations;
|
2004-02-24 23:37:18 +00:00
|
|
|
STRLIST sig_policy_url;
|
|
|
|
STRLIST cert_policy_url;
|
|
|
|
STRLIST sig_keyserver_url;
|
2005-10-12 20:44:24 +00:00
|
|
|
STRLIST cert_subpackets;
|
|
|
|
STRLIST sig_subpackets;
|
2004-02-24 23:37:18 +00:00
|
|
|
int allow_non_selfsigned_uid;
|
|
|
|
int allow_freeform_uid;
|
|
|
|
int no_literal;
|
|
|
|
ulong set_filesize;
|
|
|
|
int fast_list_mode;
|
|
|
|
int fixed_list_mode;
|
|
|
|
int ignore_time_conflict;
|
|
|
|
int ignore_valid_from;
|
|
|
|
int ignore_crc_error;
|
|
|
|
int ignore_mdc_error;
|
|
|
|
int command_fd;
|
|
|
|
const char *override_session_key;
|
|
|
|
int show_session_key;
|
|
|
|
int use_agent;
|
|
|
|
const char *gpg_agent_info;
|
|
|
|
int try_all_secrets;
|
|
|
|
int no_expensive_trust_checks;
|
|
|
|
int no_sig_cache;
|
|
|
|
int no_sig_create_check;
|
|
|
|
int no_auto_check_trustdb;
|
|
|
|
int preserve_permissions;
|
|
|
|
int no_homedir_creation;
|
|
|
|
struct groupitem *grouplist;
|
|
|
|
int strict;
|
2004-12-20 05:19:09 +00:00
|
|
|
int mangle_dos_filenames;
|
2004-02-24 23:37:18 +00:00
|
|
|
int enable_progress_filter;
|
2004-05-10 21:46:00 +00:00
|
|
|
unsigned int screen_columns;
|
|
|
|
unsigned int screen_lines;
|
2004-09-12 15:27:38 +00:00
|
|
|
byte *show_subpackets;
|
2004-12-20 05:19:09 +00:00
|
|
|
int rfc2440_text;
|
2003-09-28 13:41:58 +00:00
|
|
|
|
2005-07-22 16:28:40 +00:00
|
|
|
/* If true, let write failures on the status-fd exit the process. */
|
|
|
|
int exit_on_status_write_error;
|
|
|
|
|
|
|
|
/* If > 0, limit the number of card insertion prompts to this
|
|
|
|
value. */
|
|
|
|
int limit_card_insert_tries;
|
|
|
|
|
2003-09-28 13:41:58 +00:00
|
|
|
#ifdef ENABLE_CARD_SUPPORT
|
2004-02-24 23:37:18 +00:00
|
|
|
const char *ctapi_driver; /* Library to access the ctAPI. */
|
|
|
|
const char *pcsc_driver; /* Library to access the PC/SC system. */
|
|
|
|
int disable_ccid; /* Disable the use of the internal CCID driver. */
|
2009-07-21 14:30:13 +00:00
|
|
|
int disable_keypad; /* Do not allow the use of a keypad. */
|
2003-09-28 13:41:58 +00:00
|
|
|
#endif /*ENABLE_CARD_SUPPORT*/
|
|
|
|
|
2006-03-08 02:40:42 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* If set, require an 0x19 backsig to be present on signatures
|
|
|
|
made by signing subkeys. If not set, a missing backsig is not
|
|
|
|
an error (but an invalid backsig still is). */
|
|
|
|
unsigned int require_cross_cert:1;
|
2006-04-20 02:36:05 +00:00
|
|
|
unsigned int use_embedded_filename:1;
|
|
|
|
unsigned int utf8_filename:1;
|
2006-04-20 21:32:42 +00:00
|
|
|
unsigned int dsa2:1;
|
2007-03-05 10:22:56 +00:00
|
|
|
unsigned int allow_multiple_messages:1;
|
2006-03-08 02:40:42 +00:00
|
|
|
} flags;
|
2005-10-12 20:44:24 +00:00
|
|
|
|
2006-02-22 19:06:23 +00:00
|
|
|
/* Linked list of ways to find a key if the key isn't on the local
|
|
|
|
keyring. */
|
|
|
|
struct akl
|
|
|
|
{
|
2006-02-22 23:37:23 +00:00
|
|
|
enum {AKL_CERT, AKL_PKA, AKL_LDAP, AKL_KEYSERVER, AKL_SPEC} type;
|
|
|
|
struct keyserver_spec *spec;
|
2006-02-22 19:06:23 +00:00
|
|
|
struct akl *next;
|
|
|
|
} *auto_key_locate;
|
|
|
|
|
2006-12-03 04:38:53 +00:00
|
|
|
int passwd_repeat;
|
1997-11-18 14:06:00 +00:00
|
|
|
} opt;
|
|
|
|
|
2004-05-20 18:04:33 +00:00
|
|
|
/* CTRL is used to keep some global variables we currently can't
|
|
|
|
avoid. Future concurrent versions of gpg will put it into a per
|
|
|
|
request structure CTRL. */
|
|
|
|
EXTERN_UNLESS_MAIN_MODULE
|
|
|
|
struct {
|
|
|
|
int in_auto_key_retrieve; /* True if we are doing an
|
|
|
|
auto_key_retrieve. */
|
2004-05-22 11:33:47 +00:00
|
|
|
} glo_ctrl;
|
2004-05-20 18:04:33 +00:00
|
|
|
|
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 */
|
2002-06-29 13:46:34 +00:00
|
|
|
#define DBG_EXTPROG_VALUE 1024 /* debug external program calls */
|
2005-03-30 10:39:13 +00:00
|
|
|
#define DBG_CARD_IO_VALUE 2048 /* debug smart card I/O. */
|
1997-11-18 14:06:00 +00: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 19:04:23 +00:00
|
|
|
#define DBG_TRUST (opt.debug & DBG_TRUST_VALUE)
|
2000-07-14 17:34:53 +00:00
|
|
|
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
|
2002-06-29 13:46:34 +00:00
|
|
|
#define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE)
|
2003-09-28 13:41:58 +00:00
|
|
|
#define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE)
|
2002-06-29 13:46:34 +00:00
|
|
|
|
* packet.h, build-packet.c (build_sig_subpkt), export.c
(do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c
(dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old
sig cache subpacket. This wasn't completely harmless as it caused
subpacket 101 to disappear on import and export.
* options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c,
encode.c, getkey.c, revoke.c: The current flags for different levels of
PGP-ness are massively complex. This is step one in simplifying them. No
functional change yet, just use a macro to check for compliance level.
* sign.c (sign_file): Fix bug that causes spurious compression preference
warning.
* sign.c (clearsign_file): Fix bug that prevents proper warning message
from appearing when clearsigning in --pgp2 mode with a non-v3 RSA key.
* main.h, misc.c (compliance_option_string, compliance_string,
compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
clearsign_file), encode.c (encode_crypt, write_pubkey_enc_from_list): New
functions to put the "this message may not be usable...." warning in one
place.
* options.h, g10.c (main): Part two of the simplification. Use a single
enum to indicate what we are compliant to (1991, 2440, PGPx, etc.)
* g10.c (main): Show errors for failure in export, send-keys, recv-keys,
and refresh-keys.
* options.h, g10.c (main): Give algorithm warnings for algorithms chosen
against the --pgpX and --openpgp rules.
* keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in --openpgp
mode.
* sign.c (sign_file), pkclist.c (algo_available): Allow passing a hint of
0.
2003-05-03 04:07:45 +00:00
|
|
|
#define GNUPG (opt.compliance==CO_GNUPG)
|
|
|
|
#define RFC1991 (opt.compliance==CO_RFC1991 || opt.compliance==CO_PGP2)
|
|
|
|
#define RFC2440 (opt.compliance==CO_RFC2440)
|
2007-10-17 16:37:09 +00:00
|
|
|
#define RFC4880 (opt.compliance==CO_RFC4880)
|
* packet.h, build-packet.c (build_sig_subpkt), export.c
(do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c
(dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old
sig cache subpacket. This wasn't completely harmless as it caused
subpacket 101 to disappear on import and export.
* options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c,
encode.c, getkey.c, revoke.c: The current flags for different levels of
PGP-ness are massively complex. This is step one in simplifying them. No
functional change yet, just use a macro to check for compliance level.
* sign.c (sign_file): Fix bug that causes spurious compression preference
warning.
* sign.c (clearsign_file): Fix bug that prevents proper warning message
from appearing when clearsigning in --pgp2 mode with a non-v3 RSA key.
* main.h, misc.c (compliance_option_string, compliance_string,
compliance_failure), pkclist.c (build_pk_list), sign.c (sign_file,
clearsign_file), encode.c (encode_crypt, write_pubkey_enc_from_list): New
functions to put the "this message may not be usable...." warning in one
place.
* options.h, g10.c (main): Part two of the simplification. Use a single
enum to indicate what we are compliant to (1991, 2440, PGPx, etc.)
* g10.c (main): Show errors for failure in export, send-keys, recv-keys,
and refresh-keys.
* options.h, g10.c (main): Give algorithm warnings for algorithms chosen
against the --pgpX and --openpgp rules.
* keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in --openpgp
mode.
* sign.c (sign_file), pkclist.c (algo_available): Allow passing a hint of
0.
2003-05-03 04:07:45 +00:00
|
|
|
#define PGP2 (opt.compliance==CO_PGP2)
|
|
|
|
#define PGP6 (opt.compliance==CO_PGP6)
|
|
|
|
#define PGP7 (opt.compliance==CO_PGP7)
|
|
|
|
#define PGP8 (opt.compliance==CO_PGP8)
|
2007-10-17 16:37:09 +00:00
|
|
|
#define PGPX (PGP2 || PGP6 || PGP7 || PGP8)
|
1997-11-18 14:06:00 +00:00
|
|
|
|
2004-11-25 03:58:42 +00:00
|
|
|
/* Various option flags. Note that there should be no common string
|
|
|
|
names between the IMPORT_ and EXPORT_ flags as they can be mixed in
|
|
|
|
the keyserver-options option. */
|
2003-06-01 15:36:13 +00:00
|
|
|
|
2004-11-26 15:51:37 +00:00
|
|
|
#define IMPORT_LOCAL_SIGS (1<<0)
|
2003-11-14 05:06:19 +00:00
|
|
|
#define IMPORT_REPAIR_PKS_SUBKEY_BUG (1<<1)
|
2004-11-26 15:51:37 +00:00
|
|
|
#define IMPORT_FAST (1<<2)
|
2003-11-14 05:06:19 +00:00
|
|
|
#define IMPORT_SK2PK (1<<3)
|
2003-12-31 04:58:52 +00:00
|
|
|
#define IMPORT_MERGE_ONLY (1<<4)
|
2005-11-10 21:30:27 +00:00
|
|
|
#define IMPORT_MINIMAL (1<<5)
|
2005-11-12 04:53:03 +00:00
|
|
|
#define IMPORT_CLEAN (1<<6)
|
2003-06-01 15:36:13 +00:00
|
|
|
|
2004-11-26 15:51:37 +00:00
|
|
|
#define EXPORT_LOCAL_SIGS (1<<0)
|
|
|
|
#define EXPORT_ATTRIBUTES (1<<1)
|
|
|
|
#define EXPORT_SENSITIVE_REVKEYS (1<<2)
|
2005-11-18 04:25:07 +00:00
|
|
|
#define EXPORT_RESET_SUBKEY_PASSWD (1<<3)
|
|
|
|
#define EXPORT_MINIMAL (1<<4)
|
|
|
|
#define EXPORT_CLEAN (1<<5)
|
2003-06-01 15:36:13 +00:00
|
|
|
|
2003-11-14 05:06:19 +00:00
|
|
|
#define LIST_SHOW_PHOTOS (1<<0)
|
|
|
|
#define LIST_SHOW_POLICY_URLS (1<<1)
|
2004-05-05 02:40:27 +00:00
|
|
|
#define LIST_SHOW_STD_NOTATIONS (1<<2)
|
|
|
|
#define LIST_SHOW_USER_NOTATIONS (1<<3)
|
|
|
|
#define LIST_SHOW_NOTATIONS (LIST_SHOW_STD_NOTATIONS|LIST_SHOW_USER_NOTATIONS)
|
|
|
|
#define LIST_SHOW_KEYSERVER_URLS (1<<4)
|
2004-07-16 14:30:55 +00:00
|
|
|
#define LIST_SHOW_UID_VALIDITY (1<<5)
|
2004-05-05 02:40:27 +00:00
|
|
|
#define LIST_SHOW_UNUSABLE_UIDS (1<<6)
|
|
|
|
#define LIST_SHOW_UNUSABLE_SUBKEYS (1<<7)
|
|
|
|
#define LIST_SHOW_KEYRING (1<<8)
|
|
|
|
#define LIST_SHOW_SIG_EXPIRE (1<<9)
|
2004-09-12 15:27:38 +00:00
|
|
|
#define LIST_SHOW_SIG_SUBPACKETS (1<<10)
|
2003-09-25 04:03:11 +00:00
|
|
|
|
2003-11-14 05:06:19 +00:00
|
|
|
#define VERIFY_SHOW_PHOTOS (1<<0)
|
|
|
|
#define VERIFY_SHOW_POLICY_URLS (1<<1)
|
2004-05-05 02:40:27 +00:00
|
|
|
#define VERIFY_SHOW_STD_NOTATIONS (1<<2)
|
|
|
|
#define VERIFY_SHOW_USER_NOTATIONS (1<<3)
|
|
|
|
#define VERIFY_SHOW_NOTATIONS (VERIFY_SHOW_STD_NOTATIONS|VERIFY_SHOW_USER_NOTATIONS)
|
|
|
|
#define VERIFY_SHOW_KEYSERVER_URLS (1<<4)
|
2004-10-21 19:18:47 +00:00
|
|
|
#define VERIFY_SHOW_UID_VALIDITY (1<<5)
|
2004-05-05 02:40:27 +00:00
|
|
|
#define VERIFY_SHOW_UNUSABLE_UIDS (1<<6)
|
2006-03-08 02:40:42 +00:00
|
|
|
#define VERIFY_PKA_LOOKUPS (1<<7)
|
2006-03-07 20:14:20 +00:00
|
|
|
#define VERIFY_PKA_TRUST_INCREASE (1<<8)
|
2007-03-05 10:22:56 +00:00
|
|
|
#define VERIFY_SHOW_PRIMARY_UID_ONLY (1<<9)
|
2003-06-01 15:36:13 +00:00
|
|
|
|
2006-02-23 22:39:40 +00:00
|
|
|
#define KEYSERVER_USE_TEMP_FILES (1<<0)
|
|
|
|
#define KEYSERVER_KEEP_TEMP_FILES (1<<1)
|
|
|
|
#define KEYSERVER_ADD_FAKE_V3 (1<<2)
|
|
|
|
#define KEYSERVER_AUTO_KEY_RETRIEVE (1<<3)
|
|
|
|
#define KEYSERVER_HONOR_KEYSERVER_URL (1<<4)
|
|
|
|
#define KEYSERVER_HONOR_PKA_RECORD (1<<5)
|
2004-04-15 18:16:17 +00:00
|
|
|
|
2002-06-29 13:46:34 +00:00
|
|
|
#endif /*G10_OPTIONS_H*/
|