aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/card-util.c5
-rw-r--r--g10/export.c4
-rw-r--r--g10/gpg.c2
-rw-r--r--g10/keygen.c2
4 files changed, 7 insertions, 6 deletions
diff --git a/g10/card-util.c b/g10/card-util.c
index 8a5ab28dc..d9716a700 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -586,7 +586,8 @@ current_card_status (ctrl_t ctrl, estream_t fp,
if (info.key_attr[i].curve)
{
const char *oid;
- oid = openpgp_curve_to_oid (info.key_attr[i].curve, NULL);
+ oid = openpgp_curve_to_oid (info.key_attr[i].curve,
+ NULL, NULL);
if (oid)
curve_for_print = openpgp_oid_to_curve (oid, 0);
}
@@ -1489,7 +1490,7 @@ ask_card_keyattr (int keyno, const struct key_attr *current)
if (curve)
{
key_attr->algo = algo;
- oid_str = openpgp_curve_to_oid (curve, NULL);
+ oid_str = openpgp_curve_to_oid (curve, NULL, NULL);
key_attr->curve = openpgp_oid_to_curve (oid_str, 0);
}
else
diff --git a/g10/export.c b/g10/export.c
index 8dd0b07d7..e98af59c0 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -567,7 +567,7 @@ match_curve_skey_pk (gcry_sexp_t s_key, PKT_public_key *pk)
log_error ("no curve name\n");
return gpg_error (GPG_ERR_UNKNOWN_CURVE);
}
- oidstr = openpgp_curve_to_oid (curve_str, NULL);
+ oidstr = openpgp_curve_to_oid (curve_str, NULL, NULL);
if (!oidstr)
{
log_error ("no OID known for curve '%s'\n", curve_str);
@@ -1073,7 +1073,7 @@ transfer_format_to_openpgp (gcry_sexp_t s_pgp, PKT_public_key *pk)
goto leave;
}
- oidstr = openpgp_curve_to_oid (curve, NULL);
+ oidstr = openpgp_curve_to_oid (curve, NULL, NULL);
if (!oidstr)
{
log_error ("no OID known for curve '%s'\n", curve);
diff --git a/g10/gpg.c b/g10/gpg.c
index 08455fecb..2699bc05a 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1850,7 +1850,7 @@ list_config(char *items)
es_printf ("cfg:curveoid:");
for (iter=0, first=1; (s = openpgp_enum_curves (&iter)); first = 0)
{
- s = openpgp_curve_to_oid (s, NULL);
+ s = openpgp_curve_to_oid (s, NULL, NULL);
es_printf ("%s%s", first?"":";", s? s:"[?]");
}
es_printf ("\n");
diff --git a/g10/keygen.c b/g10/keygen.c
index d50acf8ad..5d8cccb63 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1160,7 +1160,7 @@ ecckey_from_sexp (gcry_mpi_t *array, gcry_sexp_t sexp, int algo)
goto leave;
}
gcry_sexp_release (l2);
- oidstr = openpgp_curve_to_oid (curve, &nbits);
+ oidstr = openpgp_curve_to_oid (curve, &nbits, NULL);
if (!oidstr)
{
/* That can't happen because we used one of the curves