[PATCH] g10: fix cmp_public_key and cmp_secret_keys

Werner Koch wk at gnupg.org
Thu Apr 30 09:00:00 CEST 2015


On Thu, 30 Apr 2015 07:13, gniibe at fsij.org said:

> When the public key algorithm is not known, pkey[0] field is set with
> opaque MPI in the parse_key function.  Thus, I think that the key can
> be compared.

Ack.  mpi_cmp works with opaque values since Libgcrypt 1.5.0.  However,
for GnuPG 2.0 we only require Libgcrypt 1.4.  Thus either update the
requirement for Libgcrypt or make the change depend on the Libgcrypt
version.  I would suggest the former.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list