From 9f38f3918af532e1e5a1f139b89b2a1f68dec265 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 3 Feb 2011 22:04:31 +0100 Subject: Fix test for gcry_pk_get_curve. Add a compatibility fixes for the non-curve case. Remove -lber from the dirmngr link line. --- g10/ChangeLog | 3 +++ g10/export.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'g10') diff --git a/g10/ChangeLog b/g10/ChangeLog index 43a8d56d0..3a1d68f2b 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2011-02-03 Werner Koch + * export.c (transfer_format_to_openpgp) [!HAVE_GCRY_PK_GET_CURVE]: + Fix syntax error. + * decrypt-data.c: Include status.h. (decrypt_data): Emit a DECRYPTION_INFO status line. 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])) -- cgit v1.2.3