diff options
Diffstat (limited to 'sm')
-rw-r--r-- | sm/encrypt.c | 2 | ||||
-rw-r--r-- | sm/minip12.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sm/encrypt.c b/sm/encrypt.c index 202bbb92f..98d3024ad 100644 --- a/sm/encrypt.c +++ b/sm/encrypt.c @@ -218,7 +218,7 @@ ecdh_encrypt (DEK dek, gcry_sexp_t s_pkey, gcry_sexp_t *r_encval) * canonical numerical OID. We also use this to get the size of the * curve which we need to figure out a suitable hash algo. We * should have a Libgcrypt function to do this; see bug report #4926. */ - curve = openpgp_curve_to_oid (curvebuf, &curvebits, NULL); + curve = openpgp_curve_to_oid (curvebuf, &curvebits, NULL, -1); if (!curve) { err = gpg_error (GPG_ERR_UNKNOWN_CURVE); diff --git a/sm/minip12.c b/sm/minip12.c index 00ba26d7d..34ba1a53b 100644 --- a/sm/minip12.c +++ b/sm/minip12.c @@ -2596,7 +2596,7 @@ build_ecc_key_sequence (gcry_mpi_t *kparms, int mode, size_t *r_length) /* We need to use our OpenPGP mapping to turn a curve name into its * canonical numerical OID. We should have a Libgcrypt function to * do this; see bug report #4926. */ - curve = openpgp_curve_to_oid (p, &curvebits, NULL); + curve = openpgp_curve_to_oid (p, &curvebits, NULL, 1); xfree (p); if (!curve) { |