aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-11-03 22:39:46 +0000
committerNeal H. Walfield <[email protected]>2015-11-04 12:19:54 +0000
commitde9b2340153d70b083494d1a277a384dcf43bff0 (patch)
tree68bf97eb4328f45b0401b30962c6041985de9800 /g10/options.h
parentgpg: Allow multiple --default-key options. Take the last available key. (diff)
downloadgnupg-de9b2340153d70b083494d1a277a384dcf43bff0.tar.gz
gnupg-de9b2340153d70b083494d1a277a384dcf43bff0.zip
gpg: Add --encrypt-to-default-key.
* g10/getkey.c (parse_def_secret_key): Drop the static qualifier and export the function. * g10/gpg.c (enum cmd_and_opt_values): Add value oEncryptToDefaultKey. (opts): Handle oEncryptToDefaultKey. (main): Likewise. * g10/options.h (opt): Add field encrypt_to_default_key. -- Signed-off-by: Neal H. Walfield <[email protected]> GnuPG-bug-id: 807
Diffstat (limited to '')
-rw-r--r--g10/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index 7485985e8..bc92dd746 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -175,6 +175,7 @@ struct
int no_mdc_warn;
char *temp_dir;
int no_encrypt_to;
+ int encrypt_to_default_key;
int interactive;
struct notation *sig_notations;
struct notation *cert_notations;