diff options
| author | Werner Koch <[email protected]> | 2025-07-08 14:34:36 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-07-08 14:34:36 +0000 |
| commit | 838c1c387c76f6c20e728c241ef4b47edfbb01bd (patch) | |
| tree | 7580d7011fa4aee11b4047259565f9606d862f54 /g10/card-util.c | |
| parent | kbx: Make it easier to enable debug output (diff) | |
| download | gnupg-838c1c387c76f6c20e728c241ef4b47edfbb01bd.tar.gz gnupg-838c1c387c76f6c20e728c241ef4b47edfbb01bd.zip | |
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
Diffstat (limited to 'g10/card-util.c')
| -rw-r--r-- | g10/card-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
