g10: fix cmp_public_key and cmp_secret_keys.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 30 Apr 2015 08:20:08 +0000 (17:20 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 30 Apr 2015 08:20:08 +0000 (17:20 +0900)
commit04667cabef2d6aaa214b288482bb902c891893a5
treee5931d87411613e42fc5fe6d435270689dd21a73
parent506eb6fec67f170827777f2f44ced6f50745a0ad
g10: fix cmp_public_key and cmp_secret_keys.

* g10/free-packet.c (cmp_public_keys, cmp_secret_keys): Compare opaque
data at the first entry of the array when it's unknown algo.
* mpi/mpi-cmp.c (mpi_cmp): Backport libgcrypt 1.5.0's semantics.

--

(backported from 2.0 commit 43429c7869152f301157e4b24790b3801dce0f0a)

GnuPG-bug-id: 1962
g10/free-packet.c
mpi/mpi-cmp.c