aboutsummaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/export.c')
-rw-r--r--g10/export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/export.c b/g10/export.c
index a021013ac..ba3521f2f 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -1024,6 +1024,7 @@ transfer_format_to_openpgp (gcry_sexp_t s_pgp, PKT_public_key *pk)
if (!value || !valuelen)
goto bad_seckey;
if (is_enc
+ || pk->pubkey_algo == PUBKEY_ALGO_ECDSA
|| pk->pubkey_algo == PUBKEY_ALGO_EDDSA
|| pk->pubkey_algo == PUBKEY_ALGO_ECDH)
{