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 /scd | |
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 'scd')
-rw-r--r-- | scd/app-piv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scd/app-piv.c b/scd/app-piv.c index 8b9c9a608..2ef1e94ae 100644 --- a/scd/app-piv.c +++ b/scd/app-piv.c @@ -2882,8 +2882,7 @@ writekey_ecc (app_t app, data_object_t dobj, int keyref, * functions here because Libgcrypt has no generic curve * alias lookup feature and the PIV supported curves are * also supported by OpenPGP. */ - xname = openpgp_oid_to_curve (openpgp_curve_to_oid (name, NULL, NULL), - 0); + xname = openpgp_oid_or_name_to_curve (name, 0); xfree (name); if (xname && !strcmp (xname, "nistp256")) |