diff options
author | Werner Koch <[email protected]> | 2014-01-31 14:55:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-01-31 14:55:04 +0000 |
commit | 71540d40414dc8b304b45dc476e5e5650a2db20a (patch) | |
tree | fa5576405e60748ac4e168d3248fa5499c0d7158 /g10/misc.c | |
parent | gpg: Start using OpenPGP digest algo ids. (diff) | |
download | gnupg-71540d40414dc8b304b45dc476e5e5650a2db20a.tar.gz gnupg-71540d40414dc8b304b45dc476e5e5650a2db20a.zip |
gpg: Improve --version algo info output.
* g10/misc.c (openpgp_pk_algo_name): Return a different string for
each ECC algorithm.
* g10/gpg.c (build_list_pk_test_algo): New wrapper to cope with the
different algo type enums.
(build_list_pk_algo_name): Ditto.
(build_list_cipher_test_algo): Ditto.
(build_list_cipher_algo_name): Ditto.
(build_list_md_test_algo): Ditto.
(build_list_md_algo_name): Ditto.
(my_strusage): Use them.
(list_config): Ditto. Add "pubkeyname".
(build_list): Add letter==1 hack.
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/misc.c b/g10/misc.c index 06d0b8f20..6d3a7b82f 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -572,9 +572,9 @@ openpgp_pk_algo_name (pubkey_algo_t algo) case PUBKEY_ALGO_ELGAMAL: case PUBKEY_ALGO_ELGAMAL_E: return "ELG"; case PUBKEY_ALGO_DSA: return "DSA"; - case PUBKEY_ALGO_ECDH: - case PUBKEY_ALGO_ECDSA: - case PUBKEY_ALGO_EDDSA: return "ECC"; + case PUBKEY_ALGO_ECDH: return "ECDH"; + case PUBKEY_ALGO_ECDSA: return "ECDSA"; + case PUBKEY_ALGO_EDDSA: return "EDDSA"; } return "?"; } |