Fix printing of ECC algo names in hkp keyserver listings.
authorWerner Koch <wk@gnupg.org>
Tue, 27 Nov 2012 15:51:09 +0000 (16:51 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 27 Nov 2012 15:51:09 +0000 (16:51 +0100)
* g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.

g10/keyserver.c

index 75234be..0e6bcf6 100644 (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 ");