summaryrefslogtreecommitdiffstats
path: root/g10/keyedit.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-03-15 19:11:32 +0100
committerWerner Koch <wk@gnupg.org>2019-03-15 19:14:34 +0100
commitf64477db86568bdc28c313bfeb8b95d8edf05a3c (patch)
tree983f74812b96e9f10c697bbef7c03d3337821da8 /g10/keyedit.h
parentgpg: Simplify an interactive import status line. (diff)
downloadgnupg2-f64477db86568bdc28c313bfeb8b95d8edf05a3c.tar.xz
gnupg2-f64477db86568bdc28c313bfeb8b95d8edf05a3c.zip
gpg: During secret key import print "sec" instead of "pub".
* g10/keyedit.c (show_basic_key_info): New arg 'print_sec'. Remove useless code for "sub" and "ssb". * g10/import.c (import_one): Pass FROM_SK to show_basic_key_info. Do not print the first keyinfo in FROM_SK mode. printing. -- Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/keyedit.h')
-rw-r--r--g10/keyedit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyedit.h b/g10/keyedit.h
index d1f453a6f..af5e99664 100644
--- a/g10/keyedit.h
+++ b/g10/keyedit.h
@@ -50,7 +50,7 @@ void keyedit_quick_set_expire (ctrl_t ctrl,
char **subkeyfprs);
void keyedit_quick_set_primary (ctrl_t ctrl, const char *username,
const char *primaryuid);
-void show_basic_key_info (ctrl_t ctrl, kbnode_t keyblock);
+void show_basic_key_info (ctrl_t ctrl, kbnode_t keyblock, int print_sec);
int keyedit_print_one_sig (ctrl_t ctrl, estream_t fp,
int rc, kbnode_t keyblock,
kbnode_t node, int *inv_sigs, int *no_key,