summaryrefslogtreecommitdiffstats
path: root/common/sexputil.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/sexputil.c')
-rw-r--r--common/sexputil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/sexputil.c b/common/sexputil.c
index f9842391e..e00590ac7 100644
--- a/common/sexputil.c
+++ b/common/sexputil.c
@@ -1104,8 +1104,7 @@ pubkey_algo_string (gcry_sexp_t s_pkey, enum gcry_pk_algos *r_algoid)
else if (prefix)
{
const char *curve = gcry_pk_get_curve (s_pkey, 0, NULL);
- const char *name = openpgp_oid_to_curve
- (openpgp_curve_to_oid (curve, NULL, NULL), 0);
+ const char *name = openpgp_oid_or_name_to_curve (curve, 0);
if (name)
result = xtrystrdup (name);