diff options
author | NIIBE Yutaka <[email protected]> | 2024-10-08 05:48:47 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-10-08 05:58:29 +0000 |
commit | f5703994d4692fc310292a93296626f484936b16 (patch) | |
tree | bd11c037af4ed11e70fa6525835a00487c3239fe /sm | |
parent | Implement GNUPG_ASSUME_COMPLIANCE envvar for testing (diff) | |
download | gnupg-f5703994d4692fc310292a93296626f484936b16.tar.gz gnupg-f5703994d4692fc310292a93296626f484936b16.zip |
common,gpg,scd,sm: Use openpgp_oid_or_name_to_curve to get curve.
* common/sexputil.c (pubkey_algo_string): Use
openpgp_oid_or_name_to_curve.
* g10/card-util.c (current_card_status, ask_card_keyattr): Likewise.
* scd/app-piv.c (writekey_ecc): Likewise.
* sm/fingerprint.c (gpgsm_get_key_algo_info): Likewise.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'sm')
-rw-r--r-- | sm/fingerprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sm/fingerprint.c b/sm/fingerprint.c index 375a8647e..765c471c4 100644 --- a/sm/fingerprint.c +++ b/sm/fingerprint.c @@ -268,8 +268,7 @@ gpgsm_get_key_algo_info (ksba_cert_t cert, unsigned int *nbits, char **r_curve) curve = gcry_pk_get_curve (l1, 0, NULL); if (curve) { - name = openpgp_oid_to_curve (openpgp_curve_to_oid (curve, - NULL, NULL), 0); + name = openpgp_oid_or_name_to_curve (curve, 0); *r_curve = xtrystrdup (name? name : curve); if (!*r_curve) { |