diff options
Diffstat (limited to 'scd/app-piv.c')
-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")) |