gpg: Extra check for sign usage when verifying a data signature.
authorWerner Koch <wk@gnupg.org>
Wed, 4 Jul 2018 06:59:12 +0000 (08:59 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 4 Jul 2018 07:01:52 +0000 (09:01 +0200)
commitef50fdf82a459894ed3da7b9be83f89658f1eaba
tree115755429f14a497689d1ad7a6ea90b428838076
parent04fb76684d8b2c9cda2e5c35bad6edec521cffa5
gpg: Extra check for sign usage when verifying a data signature.

* g10/sig-check.c (check_signature_end_simple): Check sign usage.
--

Without this patch the signature verification fails only due to the
missing back signature.  This check better explains what went wrong.

GnuPG-bug-id: 4014
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 214b0077264e35c079e854a8b6374704aea45cd5)
g10/sig-check.c