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 07:21:39 +0000 (16:21 +0900)
commit6f284e6ed63f514b15fe610f490ffcefc87a2164
tree036ab63de495067f671ab95d2d9191db4b9d3cb4
parent993f36e23cf8c2216a40d3e51b922a1edd871e1b
g10: Fix checking key for signature validation.

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

--

The tweak of gpgv in e32c575e0f3704e7563048eea6d26844bdfc494b only makes
sense with this change.

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