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:15:23 +0000 (17:15 +0900)
commitcaff669212d2465a3a387571305a7230d394c0e0
treeb49fe95892aba6366726d87af12d87141635c03b
parentb531f2fd75be3f616073cba714d73324525fd3e4
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