From fb754dc6170d12edf3d35c48340b8d7b1ded20f7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 6 Aug 2015 18:12:31 +0200 Subject: [PATCH] gpg: Remove duplicated printing of the curve name in "sub" lines. * g10/keylist.c (list_keyblock_print): Do not print extra curve name. -- This was cruft from the time before we changed to the new algo/size string. Signed-off-by: Werner Koch --- g10/keylist.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/g10/keylist.c b/g10/keylist.c index 4ea4bf5c5..038393103 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1087,18 +1087,6 @@ list_keyblock_print (KBNODE keyblock, int secret, int fpr, pubkey_string (pk2, pkstrbuf, sizeof pkstrbuf), keystr_from_pk (pk2), datestr_from_pk (pk2)); - if (pk2->pubkey_algo == PUBKEY_ALGO_ECDSA - || pk2->pubkey_algo == PUBKEY_ALGO_EDDSA - || pk2->pubkey_algo == PUBKEY_ALGO_ECDH) - { - char *curve = openpgp_oid_to_str (pk2->pkey[0]); - const char *name = openpgp_oid_to_curve (curve, 0); - if (!name) - name = curve; - es_fprintf (es_stdout, " %s", name); - xfree (curve); - } - if ((opt.list_options & LIST_SHOW_USAGE)) { es_fprintf (es_stdout, " [%s]", usagestr_from_pk (pk2, 0));