aboutsummaryrefslogtreecommitdiffstats
path: root/g10/delkey.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/delkey.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/g10/delkey.c b/g10/delkey.c
index 276080532..6f816080e 100644
--- a/g10/delkey.c
+++ b/g10/delkey.c
@@ -135,10 +135,7 @@ do_delete_key (ctrl_t ctrl, const char *username, int secret, int force,
}
else
{
- if (secret)
- print_seckey_info (ctrl, pk);
- else
- print_pubkey_info (ctrl, NULL, pk );
+ print_key_info (ctrl, NULL, 0, pk, secret);
tty_printf( "\n" );
yes = cpr_get_answer_is_yes