From 838c1c387c76f6c20e728c241ef4b47edfbb01bd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 8 Jul 2025 16:34:36 +0200 Subject: gpg: Display the correct OpenPGP algo name at 3 places. * g10/card-util.c (do_change_keyattr): Replace gcry_pk_algo_name by openpgp_pk_algo_name. * g10/keyedit.c (show_key_with_all_names): Ditto. -- For RSA and and DSA the Libgcrypt and the OpenPGP identifiers are the same. But for ECC they are different and thus we need to use the respective function to avoid printing a ? for example EdDSA designated revocation keys. Updates-commit: b7f8dec6325f1c80640f878ed3080bbc194fbc78 --- g10/card-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/card-util.c') diff --git a/g10/card-util.c b/g10/card-util.c index ab1ce159c..53584ce08 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -1614,7 +1614,7 @@ do_change_keyattr (int keyno, const struct key_attr *key_attr) else { log_error (_("public key algorithm %d (%s) is not supported\n"), - key_attr->algo, gcry_pk_algo_name (key_attr->algo)); + key_attr->algo, openpgp_pk_algo_name (key_attr->algo)); return gpg_error (GPG_ERR_PUBKEY_ALGO); } -- cgit