diff options
author | Werner Koch <[email protected]> | 2014-06-03 19:35:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-06-03 19:35:59 +0000 |
commit | be07ed65e169a7ec3fbecdb1abf988fc0245d9ff (patch) | |
tree | 020a3cbfbe5db314cce07681591f14201a086b65 /g10/main.h | |
parent | artwork: Add 128x128 variant of the logo. (diff) | |
download | gnupg-be07ed65e169a7ec3fbecdb1abf988fc0245d9ff.tar.gz gnupg-be07ed65e169a7ec3fbecdb1abf988fc0245d9ff.zip |
Add new option --with-secret.
* g10/gpg.c: Add option --with-secret.
* g10/options.h (struct opt): Add field with_secret.
* g10/keylist.c (public_key_list): Pass opt.with_secret to list_all
and list_one.
(list_all, list_one): Add arg mark_secret.
(list_keyblock_colon): Add arg has_secret.
* sm/gpgsm.c: Add option --with-secret.
* sm/server.c (option_handler): Add option "with-secret".
* sm/gpgsm.h (server_control_s): Add field with_secret.
* sm/keylist.c (list_cert_colon): Take care of with_secret. Also move
the token string from the wrong field 14 to 15.
--
This option is useful for key managers which need to know whether a
key has a secret key. This change allows to collect this information
in one pass.
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h index d8b9a4db5..2802cb5c3 100644 --- a/g10/main.h +++ b/g10/main.h @@ -327,7 +327,8 @@ void public_key_list (ctrl_t ctrl, strlist_t list, int locate_mode ); void secret_key_list (ctrl_t ctrl, strlist_t list ); void print_subpackets_colon(PKT_signature *sig); void reorder_keyblock (KBNODE keyblock); -void list_keyblock( KBNODE keyblock, int secret, int fpr, void *opaque ); +void list_keyblock (kbnode_t keyblock, int secret, int has_secret, + int fpr, void *opaque); void print_fingerprint (estream_t fp, PKT_public_key *pk, int mode); void print_revokers (estream_t fp, PKT_public_key *pk); void show_policy_url(PKT_signature *sig,int indent,int mode); |