summaryrefslogtreecommitdiffstats
path: root/g10/export.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-02-03 22:04:31 +0100
committerWerner Koch <wk@gnupg.org>2011-02-03 22:04:31 +0100
commit9f38f3918af532e1e5a1f139b89b2a1f68dec265 (patch)
tree24e78dfa401dc29cf6dbef1338ad9aae7016ac67 /g10/export.c
parentAdd a DECRYPTION_INFO status. (diff)
downloadgnupg2-9f38f3918af532e1e5a1f139b89b2a1f68dec265.tar.xz
gnupg2-9f38f3918af532e1e5a1f139b89b2a1f68dec265.zip
Fix test for gcry_pk_get_curve.
Add a compatibility fixes for the non-curve case. Remove -lber from the dirmngr link line.
Diffstat (limited to '')
-rw-r--r--g10/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/export.c b/g10/export.c
index 91a6c87f1..47185e301 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -656,7 +656,7 @@ transfer_format_to_openpgp (gcry_sexp_t s_pgp, PKT_public_key *pk)
for (idx=0; idx < npkey; idx++)
if (0
#ifndef HAVE_GCRY_PK_GET_CURVE
- gcry_mpi_get_flag (pk->pkey[idx], GCRYMPI_FLAG_OPAQUE)
+ || gcry_mpi_get_flag (pk->pkey[idx], GCRYMPI_FLAG_OPAQUE)
|| gcry_mpi_get_flag (skey[idx], GCRYMPI_FLAG_OPAQUE)
#endif
|| gcry_mpi_cmp (pk->pkey[idx], skey[idx]))