g10: Fix checking key for signature validation.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 4 Aug 2016 07:21:39 +0000 (16:21 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 4 Aug 2016 08:14:26 +0000 (17:14 +0900)
commitf474b161f6c8c7a3dc0fb90d25ffceacba1ff117
tree1363da8102eae228c01c2f5d41203d0099a5eec7
parent0f6bda4ccd2091e386e78c369131388ae5ebc002
g10: Fix checking key for signature validation.

* g10/sig-check.c (signature_check2): Not only subkey, but also primary
key should have flags.valid=1.

--

(backport of master
commit 6f284e6ed63f514b15fe610f490ffcefc87a2164)

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/sig-check.c