diff options
Diffstat (limited to 'g10')
-rw-r--r-- | g10/export.c | 2 | ||||
-rw-r--r-- | g10/import.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/g10/export.c b/g10/export.c index 9453c603a..faec87c1b 100644 --- a/g10/export.c +++ b/g10/export.c @@ -753,7 +753,7 @@ cleartext_secret_key_to_openpgp (gcry_sexp_t s_key, PKT_public_key *pk) break; case GCRY_PK_ECC: - err = match_curve_skey_pk (key, pk, is_448); + err = match_curve_skey_pk (key, pk, &is_448); if (err) goto leave; else diff --git a/g10/import.c b/g10/import.c index f9c0cc27c..02e7d1007 100644 --- a/g10/import.c +++ b/g10/import.c @@ -2494,7 +2494,6 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, while ((node = walk_kbnode (sec_keyblock, &ctx, 0))) { gcry_mpi_t ecc_pubkey = NULL; - gcry_mpi_t ecc_seckey = NULL; if (node->pkt->pkttype != PKT_SECRET_KEY && node->pkt->pkttype != PKT_SECRET_SUBKEY) @@ -2586,9 +2585,7 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, put_membuf_str (&mbuf, " e %m"); else put_membuf_str (&mbuf, " _ %m"); - ecc_seckey = openpgp_ecc_parse_key (pk->pubkey_algo, - curvename, pk->pkey[i]); - format_args[j++] = &ecc_seckey; + format_args[j++] = pk->pkey + i; /* Simple hack to print a warning for an invalid key * in case of cv25519. We have only opaque MPIs here. */ @@ -2638,7 +2635,6 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, xfree (format); } gcry_mpi_release (ecc_pubkey); - gcry_mpi_release (ecc_seckey); if (err) { log_error ("error building skey array: %s\n", gpg_strerror (err)); |