Diffusion GnuPG 214b0077264e

gpg: Extra check for sign usage when verifying a data signature.

Authored by werner on Jul 4 2018, 8:59 AM.

Description

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: T4014
  • Signed-off-by: Werner Koch <wk@gnupg.org>