mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Use canonical name for curve.
* g10/import.c (transfer_secret_keys): Use canonical name. * common/openpgp-oid.c (openpgp_curve_to_oid): Return NULL on error. * g10/keyid.c (pubkey_string): Follow change of openpgp_curve_to_oid. * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto. * g10/parse-packet.c (parse_key): Ditto.
This commit is contained in:
parent
1be2cebf7f
commit
5b46726931
5 changed files with 12 additions and 10 deletions
|
@ -1092,7 +1092,7 @@ list_keyblock_print (KBNODE keyblock, int secret, int fpr,
|
|||
{
|
||||
char *curve = openpgp_oid_to_str (pk2->pkey[0]);
|
||||
const char *name = openpgp_oid_to_curve (curve);
|
||||
if (!*name || *name == '?')
|
||||
if (!name)
|
||||
name = curve;
|
||||
es_fprintf (es_stdout, " %s", name);
|
||||
xfree (curve);
|
||||
|
@ -1359,7 +1359,7 @@ list_keyblock_colon (KBNODE keyblock, int secret, int has_secret, int fpr)
|
|||
{
|
||||
char *curve = openpgp_oid_to_str (pk->pkey[0]);
|
||||
const char *name = openpgp_oid_to_curve (curve);
|
||||
if (!*name || *name == '?')
|
||||
if (!name)
|
||||
name = curve;
|
||||
es_fputs (name, es_stdout);
|
||||
xfree (curve);
|
||||
|
@ -1488,7 +1488,7 @@ list_keyblock_colon (KBNODE keyblock, int secret, int has_secret, int fpr)
|
|||
{
|
||||
char *curve = openpgp_oid_to_str (pk->pkey[0]);
|
||||
const char *name = openpgp_oid_to_curve (curve);
|
||||
if (!*name || *name == '?')
|
||||
if (!name)
|
||||
name = curve;
|
||||
es_fputs (name, es_stdout);
|
||||
xfree (curve);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue