aboutsummaryrefslogtreecommitdiffstats
path: root/common/sexputil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-02-11 13:38:03 +0000
committerWerner Koch <[email protected]>2020-02-11 13:40:54 +0000
commit24095101a5069f15a9aea7512498ac436a76814a (patch)
tree58b6e8f20ed4332599cba202003c52062d800b70 /common/sexputil.c
parentdoc: Improve the warning section of the gpg man page. (diff)
downloadgnupg-24095101a5069f15a9aea7512498ac436a76814a.tar.gz
gnupg-24095101a5069f15a9aea7512498ac436a76814a.zip
common: Extend the openpgp_curve_to_oid function.
* common/openpgp-oid.c (openpgp_curve_to_oid): Add optional arg R_NBITS. Change all callers. -- In particular for ed25519 and cv25519 it is quite useful to have an ability to get the required algorithm.
Diffstat (limited to 'common/sexputil.c')
-rw-r--r--common/sexputil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sexputil.c b/common/sexputil.c
index f99bc3b18..3ed95e43b 100644
--- a/common/sexputil.c
+++ b/common/sexputil.c
@@ -623,7 +623,7 @@ pubkey_algo_string (gcry_sexp_t s_pkey, enum gcry_pk_algos *r_algoid)
{
const char *curve = gcry_pk_get_curve (s_pkey, 0, NULL);
const char *name = openpgp_oid_to_curve
- (openpgp_curve_to_oid (curve, NULL), 0);
+ (openpgp_curve_to_oid (curve, NULL, NULL), 0);
if (name)
result = xtrystrdup (name);