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:10 +0000 (09:01 +0200)
commit214b0077264e35c079e854a8b6374704aea45cd5
treec665b5729ffc037da01dd75ca95f9f4a0f668751
parent996febbab21eb9283b0634e51303a36b318734a6
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>
g10/sig-check.c