aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgp-fpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/openpgp-fpr.c')
-rw-r--r--common/openpgp-fpr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/openpgp-fpr.c b/common/openpgp-fpr.c
index 7860d3872..699eee9ee 100644
--- a/common/openpgp-fpr.c
+++ b/common/openpgp-fpr.c
@@ -231,7 +231,8 @@ compute_openpgp_fpr_ecc (int keyversion, unsigned long timestamp,
unsigned char nbits_q[2];
unsigned int n;
- curveoidstr = openpgp_curve_to_oid (curvename, &curvebits, &pgpalgo);
+ curveoidstr = openpgp_curve_to_oid (curvename, &curvebits, &pgpalgo,
+ (keyversion > 4));
err = openpgp_oid_from_str (curveoidstr, &curveoid);
if (err)
goto leave;