Fix printing of ECC algo names in hkp keyserver listings.

* g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.
This commit is contained in:
Werner Koch 2012-11-27 16:51:09 +01:00
parent 66331e138e
commit 3d2da6c821
1 changed files with 4 additions and 2 deletions

View File

@ -506,9 +506,11 @@ print_keyrec(int number,struct keyrec *keyrec)
if(keyrec->type)
{
const char *str = gcry_pk_algo_name (keyrec->type);
const char *str;
if(str)
str = gcry_pk_algo_name (map_pk_openpgp_to_gcry (keyrec->type));
if (str && strcmp (str, "?"))
es_printf ("%s ",str);
else
es_printf ("unknown ");